mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
fix(ci): build jbinit
This commit is contained in:
1 file changed
+64
-3
@@ -8,6 +8,49 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
build-ramdisk:
|
||||||
|
runs-on: macos-15
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: palera1n/jbinit
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- name: Select correct Xcode
|
||||||
|
uses: mobiledevops/xcode-select-version-action@v1
|
||||||
|
with:
|
||||||
|
xcode-select-version: 16.4
|
||||||
|
|
||||||
|
- name: Install dependencies (brew)
|
||||||
|
run: |
|
||||||
|
brew install make gnu-sed ldid-procursus fakeroot
|
||||||
|
|
||||||
|
- name: Obtain artifacts
|
||||||
|
run: |
|
||||||
|
curl -LOO https://static.palera.in/artifacts/loader/universal_lite/palera1nLoader{TV,}.ipa
|
||||||
|
curl -LO https://static.palera.in/binpack.tar
|
||||||
|
install -m644 binpack.tar palera1nLoader{TV,}.ipa src
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
gmake -j1 tools
|
||||||
|
gmake -j$(sysctl -n hw.ncpu)
|
||||||
|
|
||||||
|
|
||||||
|
- name: Prepare upload directory
|
||||||
|
run: |
|
||||||
|
mkdir upload
|
||||||
|
mv src/ramdisk.dmg upload/
|
||||||
|
mv src/binpack.dmg upload/
|
||||||
|
|
||||||
|
- name: Upload
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: embedded
|
||||||
|
path: |
|
||||||
|
upload/*
|
||||||
|
|
||||||
build-pongo:
|
build-pongo:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
@@ -35,7 +78,7 @@ jobs:
|
|||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build-pongo
|
needs: [build-pongo, build-ramdisk]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -46,6 +89,12 @@ jobs:
|
|||||||
name: pongo
|
name: pongo
|
||||||
path: payloads/
|
path: payloads/
|
||||||
|
|
||||||
|
- name : Download embedded artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: embedded
|
||||||
|
path: payloads/
|
||||||
|
|
||||||
- name: Install dependencies (apt)
|
- name: Install dependencies (apt)
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
@@ -64,7 +113,7 @@ jobs:
|
|||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
needs: build-pongo
|
needs: [build-pongo, build-ramdisk]
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -83,6 +132,12 @@ jobs:
|
|||||||
name: pongo
|
name: pongo
|
||||||
path: payloads/
|
path: payloads/
|
||||||
|
|
||||||
|
- name : Download embedded artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: embedded
|
||||||
|
path: payloads/
|
||||||
|
|
||||||
- name: Install dependencies (brew)
|
- name: Install dependencies (brew)
|
||||||
run: |
|
run: |
|
||||||
brew update
|
brew update
|
||||||
@@ -102,7 +157,7 @@ jobs:
|
|||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
needs: build-pongo
|
needs: [build-pongo, build-ramdisk]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -113,6 +168,12 @@ jobs:
|
|||||||
name: pongo
|
name: pongo
|
||||||
path: payloads/
|
path: payloads/
|
||||||
|
|
||||||
|
- name : Download embedded artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: embedded
|
||||||
|
path: payloads/
|
||||||
|
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in new issue
Block a user