Skip to content

Commit 8b2f9c0

Browse files
committed
test build script
1 parent 4a0a0f5 commit 8b2f9c0

File tree

1 file changed

+44
-36
lines changed

1 file changed

+44
-36
lines changed

.github/workflows/build.yml

Lines changed: 44 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,52 +10,60 @@ on:
1010
jobs:
1111
build-ios:
1212
name: Build IPA
13-
runs-on: macOS-15
13+
runs-on: macos-latest
14+
1415
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
2117
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
2431
run: |
25-
chmod +x ipabuild.sh
26-
./ipabuild.sh
27-
32+
cd build
33+
zip -r Sulfur.zip Sulfur.ipa
34+
2835
- name: Upload IPA artifact
2936
uses: actions/upload-artifact@v4
3037
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
3445

35-
build-mac:
36-
name: Build Mac Catalyst
37-
runs-on: macOS-15
3846
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
4548
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+
5261
- 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
5765
uses: actions/upload-artifact@v4
5866
with:
59-
name: Sulfur-Mac
67+
name: Sulfur-macOS-Build
6068
path: build/Sulfur.dmg
61-
compression-level: 0
69+
retention-days: 30

0 commit comments

Comments
 (0)