Skip to content

Build

Build #589

Workflow file for this run

name: Build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Select correct Xcode
uses: mobiledevops/xcode-select-version-action@v1
with:
xcode-select-version: 15.2
- name: Install dependencies (packages)
run: |
brew install make gnu-sed ldid-procursus fakeroot
- name: Install dependecies
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: Compile
run: |
gmake -j1 tools
gmake -j$(sysctl -n hw.ncpu)
- name: Prepare for upload (RELEASE)
run: |
mkdir dist
cp src/ramdisk.dmg dist/ramdisk.dmg
cp src/binpack.dmg dist/binpack.dmg
- name: Compile DEVELOPMENT
run: |
gmake clean
gmake -j$(sysctl -n hw.ncpu) DEV_BUILD=1
- name: Prepare for upload (DEVELOPMENT)
run: |
cp src/ramdisk.dmg dist/ramdisk.development.dmg
cp src/binpack.dmg dist/binpack.development.dmg
- name: Upload artifact
uses: wangyucode/[email protected]
with:
host: ${{ secrets.NICKCHAN_FTP_HOST }}
port: ${{ secrets.NICKCHAN_FTP_PORT }}
username: palera1n
password: ${{ secrets.NICKCHAN_FTP_PASS }}
forceUpload: true
dryRun: false
localDir: 'dist/'
remoteDir: '/palera1n/c-rewrite/deps/'