|
10 | 10 | jobs: |
11 | 11 | build-ios: |
12 | 12 | name: Build IPA |
13 | | - runs-on: macOS-15 |
| 13 | + runs-on: macos-latest |
| 14 | + |
14 | 15 | steps: |
15 | | - - name: Use Node.js 20 |
16 | | - uses: actions/setup-node@v4 |
17 | | - with: |
18 | | - node-version: '20' |
19 | | - |
20 | | - - name: Checkout code |
| 16 | + - name: Checkout repository |
21 | 17 | uses: actions/checkout@v4 |
22 | | - |
23 | | - - name: Run ipabuild.sh |
| 18 | + |
| 19 | + - name: Set up Xcode |
| 20 | + uses: maxim-lobanov/setup-xcode@v1 |
| 21 | + with: |
| 22 | + xcode-version: latest-stable |
| 23 | + |
| 24 | + - name: Make build script executable |
| 25 | + run: chmod +x ./ipabuild.sh |
| 26 | + |
| 27 | + - name: Build IPA |
| 28 | + run: ./ipabuild.sh |
| 29 | + |
| 30 | + - name: Compress IPA |
24 | 31 | run: | |
25 | | - chmod +x ipabuild.sh |
26 | | - ./ipabuild.sh |
27 | | - |
| 32 | + cd build |
| 33 | + zip -r Sulfur.zip Sulfur.ipa |
| 34 | +
|
28 | 35 | - name: Upload IPA artifact |
29 | 36 | uses: actions/upload-artifact@v4 |
30 | 37 | with: |
31 | | - name: Sulfur-IPA |
32 | | - path: build/Sulfur.ipa |
33 | | - compression-level: 0 |
| 38 | + name: Sulfur-iOS-Build |
| 39 | + path: build/Sulfur.zip |
| 40 | + retention-days: 30 |
| 41 | + |
| 42 | + build-macos: |
| 43 | + name: Build macOS App |
| 44 | + runs-on: macos-latest |
34 | 45 |
|
35 | | - build-mac: |
36 | | - name: Build Mac Catalyst |
37 | | - runs-on: macOS-15 |
38 | 46 | steps: |
39 | | - - name: Use Node.js 20 |
40 | | - uses: actions/setup-node@v4 |
41 | | - with: |
42 | | - node-version: '20' |
43 | | - |
44 | | - - name: Checkout code |
| 47 | + - name: Checkout repository |
45 | 48 | uses: actions/checkout@v4 |
46 | | - |
47 | | - - name: Run macbuild.sh |
48 | | - run: | |
49 | | - chmod +x macbuild.sh |
50 | | - ./macbuild.sh |
51 | | - |
| 49 | + |
| 50 | + - name: Set up Xcode |
| 51 | + uses: maxim-lobanov/setup-xcode@v1 |
| 52 | + with: |
| 53 | + xcode-version: latest-stable |
| 54 | + |
| 55 | + - name: Make build script executable |
| 56 | + run: chmod +x ./macbuild.sh |
| 57 | + |
| 58 | + - name: Build macOS App |
| 59 | + run: ./macbuild.sh |
| 60 | + |
52 | 61 | - name: Create DMG |
53 | | - run: | |
54 | | - hdiutil create -volname "Sulfur" -srcfolder build/Sulfur.app -ov -format UDZO build/Sulfur.dmg |
55 | | - |
56 | | - - name: Upload Mac artifact |
| 62 | + run: hdiutil create -volname "Sulfur" -srcfolder build/Sulfur.app -ov -format UDZO build/Sulfur.dmg |
| 63 | + |
| 64 | + - name: Upload macOS artifact |
57 | 65 | uses: actions/upload-artifact@v4 |
58 | 66 | with: |
59 | | - name: Sulfur-Mac |
| 67 | + name: Sulfur-macOS-Build |
60 | 68 | path: build/Sulfur.dmg |
61 | | - compression-level: 0 |
| 69 | + retention-days: 30 |
0 commit comments