forked from SDWebImage/SDWebImage
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (53 loc) · 1.66 KB
/
CD.yml
File metadata and controls
59 lines (53 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: "SDWebImage CD"
on:
push:
# Pattern matched against refs/tags
tags:
- '*'
jobs:
Release:
name: Release XCFramework
runs-on: macos-15
env:
LC_ALL: en_US.UTF-8
CODESIGN_KEY_BASE64: "${{ secrets.CODESIGN_KEY_BASE64 }}"
DEVELOPER_DIR: /Applications/Xcode_16.0.app
XCODE_VERSION_MAJOR: 1600
XCODE_VERSION_MINOR: 1600
strategy:
fail-fast: true
matrix:
linkage: [dynamic, static]
include:
- linkage: dynamic
MACH_O_TYPE: mh_dylib
- linkage: static
MACH_O_TYPE: staticlib
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build XCFramework
run: |
set -o pipefail
export MACH_O_TYPE="${{ matrix.MACH_O_TYPE }}"
./Scripts/build-frameworks.sh
rm -rf ~/Library/Developer/Xcode/DerivedData/
- name: Create XCFramework
run: |
set -o pipefail
export MACH_O_TYPE="${{ matrix.MACH_O_TYPE }}"
./Scripts/create-xcframework.sh
./Scripts/sign-xcframework.sh
- name: Archive XCFramework
run: |
cd build
zip -r -y SDWebImage-${{ matrix.linkage }}.xcframework.zip SDWebImage.xcframework
cd ../
mv build/SDWebImage-${{ matrix.linkage }}.xcframework.zip SDWebImage-${{ matrix.linkage }}.xcframework.zip
rm -rf build
- uses: softprops/action-gh-release@v0.1.15
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
GITHUB_REPOSITORY: "${{ github.repository }}"
with:
files: "SDWebImage-${{ matrix.linkage }}.xcframework.zip"