-
Notifications
You must be signed in to change notification settings - Fork 34
48 lines (40 loc) · 1.44 KB
/
build_xcframework_manual.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
name: Build XCFramework
on: workflow_dispatch
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
publish:
runs-on: macos-latest
steps:
# https://github.com/actions/runner-images/issues/10559
- name: Download visionOS SDK
run: |
sudo xcodebuild -runFirstLaunch
sudo xcrun simctl list
sudo xcodebuild -downloadPlatform visionOS
sudo xcodebuild -runFirstLaunch
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GIOSDK_PAT }}
- name: Generate xcframework
env:
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
CODESIGN_IDENTIFY_NAME: ${{ secrets.CODESIGN_IDENTIFY_NAME }}
run:
sh ./scripts/generate_xcframework.sh releaseDefaultAutotracker --codesign --verbose
- name: Archive
run: |
cd ./generate
tar -czvf GrowingAnalytics.xcframework.tar.gz ./Release
zip -r -y GrowingAnalytics.xcframework.zip ./Release
- name: Upload
uses: actions/upload-artifact@v4
with:
name: archive
path: |
./generate/GrowingAnalytics.xcframework.tar.gz
./generate/GrowingAnalytics.xcframework.zip