test build script

This commit is contained in:
cranci1 2025-08-15 15:07:15 +02:00
parent 4a0a0f5144
commit 8b2f9c08cd

View file

@ -10,52 +10,60 @@ on:
jobs: jobs:
build-ios: build-ios:
name: Build IPA name: Build IPA
runs-on: macOS-15 runs-on: macos-latest
steps:
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Checkout code steps:
- name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Run ipabuild.sh - name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Make build script executable
run: chmod +x ./ipabuild.sh
- name: Build IPA
run: ./ipabuild.sh
- name: Compress IPA
run: | run: |
chmod +x ipabuild.sh cd build
./ipabuild.sh zip -r Sulfur.zip Sulfur.ipa
- name: Upload IPA artifact - name: Upload IPA artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: Sulfur-IPA name: Sulfur-iOS-Build
path: build/Sulfur.ipa path: build/Sulfur.zip
compression-level: 0 retention-days: 30
build-macos:
name: Build macOS App
runs-on: macos-latest
build-mac:
name: Build Mac Catalyst
runs-on: macOS-15
steps: steps:
- name: Use Node.js 20 - name: Checkout repository
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Run macbuild.sh - name: Set up Xcode
run: | uses: maxim-lobanov/setup-xcode@v1
chmod +x macbuild.sh with:
./macbuild.sh xcode-version: latest-stable
- name: Make build script executable
run: chmod +x ./macbuild.sh
- name: Build macOS App
run: ./macbuild.sh
- name: Create DMG - name: Create DMG
run: | run: hdiutil create -volname "Sulfur" -srcfolder build/Sulfur.app -ov -format UDZO build/Sulfur.dmg
hdiutil create -volname "Sulfur" -srcfolder build/Sulfur.app -ov -format UDZO build/Sulfur.dmg
- name: Upload Mac artifact - name: Upload macOS artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: Sulfur-Mac name: Sulfur-macOS-Build
path: build/Sulfur.dmg path: build/Sulfur.dmg
compression-level: 0 retention-days: 30