forked from Lakr233/FlowDown
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (73 loc) · 2.63 KB
/
ci.yml
File metadata and controls
81 lines (73 loc) · 2.63 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build (${{ matrix.target }})
runs-on: macos-26
strategy:
fail-fast: false
matrix:
include:
- target: ios
scheme: FlowDown
destination: "generic/platform=iOS"
archive_path: BuildArtifacts/ios.xcarchive
- target: macos
scheme: FlowDown
destination: "generic/platform=macOS,variant=Mac Catalyst"
archive_path: BuildArtifacts/macos.xcarchive
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Select Xcode 26.0
run: sudo xcode-select -s /Applications/Xcode_26.0.app/Contents/Developer
- name: Resolve Packages (${{ matrix.target }})
run: |
set -o pipefail
xcodebuild \
-workspace FlowDown.xcworkspace \
-scheme "${{ matrix.scheme }}" \
-resolvePackageDependencies \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY="" \
| xcbeautify --is-ci --disable-colored-output --disable-logging
- name: Archive (${{ matrix.target }})
run: |
set -o pipefail
mkdir -p BuildArtifacts
xcodebuild \
-workspace FlowDown.xcworkspace \
-scheme "${{ matrix.scheme }}" \
-configuration Release \
-destination '${{ matrix.destination }}' \
archive \
-archivePath "${{ matrix.archive_path }}" \
-resultBundlePath "BuildArtifacts/${{ matrix.target }}.xcresult" \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY="" \
| xcbeautify --is-ci --disable-colored-output --disable-logging
- name: Compress Archive (${{ matrix.target }})
run: |
ditto -c -k --sequesterRsrc --keepParent "${{ matrix.archive_path }}" "BuildArtifacts/${{ matrix.target }}.xcarchive.zip"
- name: Upload Build Artifact (${{ matrix.target }})
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}-xcresult
path: BuildArtifacts/${{ matrix.target }}.xcresult
if-no-files-found: error
retention-days: 7
- name: Upload Archive Artifact (${{ matrix.target }})
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}-xcarchive
path: BuildArtifacts/${{ matrix.target }}.xcarchive.zip
if-no-files-found: error
retention-days: 7