Skip to content

Commit b56c81f

Browse files
committed
ci: add archive workflow
1 parent 504e577 commit b56c81f

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/archive.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Archive
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
archive:
8+
strategy:
9+
matrix:
10+
xcode: ["16.2"]
11+
runs-on: macOS-15
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Select Xcode
15+
run: sudo xcode-select --switch /Applications/Xcode_${{ matrix.xcode }}
16+
- name: bundle install
17+
run: bundle update --bundler && bundle install
18+
- name: Install CocoaPods dependencies
19+
run: bundle exec pod install
20+
- run: git config --global core.quotepath false # for Ikemen on SwiftPM
21+
- name: Build
22+
run: |
23+
set -o pipefail
24+
xcodebuild \
25+
-workspace iMast.xcworkspace -scheme "iMast iOS"
26+
archive -archivePath "./archive" \
27+
CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY="" AD_HOC_CODE_SIGNING_ALLOWED=YES | tee ./xcodebuild.log | xcpretty -c
28+
- uses: actions/upload-artifact@v4
29+
if: always()
30+
with:
31+
name: xcodebuild.Xcode.${{ matrix.xcode }}.${{ matrix.machine }}.log
32+
path: ./xcodebuild.log
33+
- uses: actions/upload-artifact@v4
34+
with:
35+
name: archive
36+
path: ./archive

0 commit comments

Comments
 (0)