mirror of
https://github.com/cranci1/Sora.git
synced 2026-01-11 20:10:24 +00:00
test build script
This commit is contained in:
parent
4a0a0f5144
commit
8b2f9c08cd
1 changed files with 44 additions and 36 deletions
80
.github/workflows/build.yml
vendored
80
.github/workflows/build.yml
vendored
|
|
@ -10,52 +10,60 @@ on:
|
|||
jobs:
|
||||
build-ios:
|
||||
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
|
||||
- name: Checkout repository
|
||||
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: |
|
||||
chmod +x ipabuild.sh
|
||||
./ipabuild.sh
|
||||
|
||||
cd build
|
||||
zip -r Sulfur.zip Sulfur.ipa
|
||||
|
||||
- name: Upload IPA artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Sulfur-IPA
|
||||
path: build/Sulfur.ipa
|
||||
compression-level: 0
|
||||
name: Sulfur-iOS-Build
|
||||
path: build/Sulfur.zip
|
||||
retention-days: 30
|
||||
|
||||
build-macos:
|
||||
name: Build macOS App
|
||||
runs-on: macos-latest
|
||||
|
||||
build-mac:
|
||||
name: Build Mac Catalyst
|
||||
runs-on: macOS-15
|
||||
steps:
|
||||
- name: Use Node.js 20
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Checkout code
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run macbuild.sh
|
||||
run: |
|
||||
chmod +x macbuild.sh
|
||||
./macbuild.sh
|
||||
|
||||
|
||||
- name: Set up Xcode
|
||||
uses: maxim-lobanov/setup-xcode@v1
|
||||
with:
|
||||
xcode-version: latest-stable
|
||||
|
||||
- name: Make build script executable
|
||||
run: chmod +x ./macbuild.sh
|
||||
|
||||
- name: Build macOS App
|
||||
run: ./macbuild.sh
|
||||
|
||||
- name: Create DMG
|
||||
run: |
|
||||
hdiutil create -volname "Sulfur" -srcfolder build/Sulfur.app -ov -format UDZO build/Sulfur.dmg
|
||||
|
||||
- name: Upload Mac artifact
|
||||
run: hdiutil create -volname "Sulfur" -srcfolder build/Sulfur.app -ov -format UDZO build/Sulfur.dmg
|
||||
|
||||
- name: Upload macOS artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Sulfur-Mac
|
||||
name: Sulfur-macOS-Build
|
||||
path: build/Sulfur.dmg
|
||||
compression-level: 0
|
||||
retention-days: 30
|
||||
|
|
|
|||
Loading…
Reference in a new issue