-
Notifications
You must be signed in to change notification settings - Fork 81
49 lines (42 loc) · 1.4 KB
/
ci.yml
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
name: Build Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Download Frameworks
uses: robinraju/release-downloader@v1.7
with:
repository: "imfuxiao/LibrimeKit"
latest: true
fileName: "Frameworks.tgz"
- name: Un-tar Frameworks
run: |
tar -xzf Frameworks.tgz -C Frameworks/..
- name: Build Schemas
run: |
make schema
- name: Select Xcode
run: sudo xcode-select -s "/Applications/Xcode_15.0.1.app"
- name: Compile
run: |
xcodebuild archive -archivePath "Hamster" -scheme "Hamster" -sdk "iphoneos" -arch arm64 -configuration Release CODE_SIGNING_ALLOWED=NO
BUILT_PATH=$(find Hamster.xcarchive -name '*.app' -type d | head -1)
find "$BUILT_PATH" -type d -path '*/Frameworks/*.dylib' -exec codesign --force --sign - --timestamp=none \{\} \;
codesign --force --sign - --entitlements "Hamster/Hamster.entitlements" --timestamp=none "$BUILT_PATH"
tar -acf Hamster.xcarchive.tgz Hamster.xcarchive
- name: Upload xcarchive
uses: actions/upload-artifact@v3
with:
name: Hamster-ios-arm64-xcarchive
path: Hamster.xcarchive.tgz