Improved reboot logic #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 Xcode version (15.2) | |
run: sudo xcode-select --switch /Applications/Xcode_15.2.app | |
- name: Install dependencies (packages) | |
run: | | |
sudo /usr/local/bin/pip3 install jsonschema jinja2 | |
brew install make autoconf automake pkg-config gnu-sed coreutils | |
sudo rm -rf /usr/local/Frameworks/Python* | |
curl -LO https://github.com/ProcursusTeam/ldid/releases/download/v2.1.5-procursus7/ldid_macosx_x86_64 | |
sudo install -m755 ldid_macosx_x86_64 /usr/local/bin/ldid | |
- name: Install dependecies | |
run: | | |
curl -LO https://static.palera.in/artifacts/loader/universal_lite/a2a90a8/palera1nLoader.ipa | |
curl -LO https://static.palera.in/artifacts/loader/universal_lite/a2a90a8/binpack.tar | |
- name: Compile ramdisk.dmg | |
run: sudo gmake -j$(sysctl -n hw.ncpu) ramdisk.dmg | |
- name: Compile binpack.dmg | |
run: sudo gmake -j$(sysctl -n hw.ncpu) binpack.dmg | |
- name: Prepare for upload | |
run: | | |
mkdir dist | |
cp ramdisk.dmg dist/ramdisk.dmg | |
cp binpack.dmg dist/binpack.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/b8/' |