-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (44 loc) · 1.37 KB
/
main.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
50
51
52
53
54
name: Build
on:
push:
branches: [main]
jobs:
build:
name: Build XCFramework
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: List Xcode details
run: |
xcodebuild -version
swift --version
- name: List project structure
run: |
ls -la
xcodebuild -list
- name: Make Build script executable
run: chmod +x ./.github/build.sh
- name: Build XCFramework
run: |
sh ./.github/build.sh RunveyKit
- name: Verify XCFramework
run: |
ls -la ./RunveyKit.xcframework
xcrun xcframework info ./RunveyKit.xcframework
- name: Create zip archive
run: zip -r ./RunveyKit.xcframework.zip ./RunveyKit.xcframework
- name: Upload artifact to Emerge
uses: EmergeTools/emerge-upload-action@v1.1.0
with:
build_type: release
artifact_path: ./RunveyKit.xcframework.zip
emerge_api_key: ${{ secrets.EMERGE_API_KEY }}
- name: Upload artifact to GitHub
uses: actions/upload-artifact@v3
with:
name: RunveyKit.xcframework
path: ./RunveyKit.xcframework.zip