Vanillatmosphere build #9841
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: Vanillatmosphere build | |
on: | |
schedule: | |
- cron: '*/120 * * * *' | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: check | |
uses: actions/checkout@v3 | |
- name: install python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: install requirements | |
run: pip install -r requirement.txt | |
- name: execute script | |
run: python download.py | |
- name: copy configs | |
run: cp -r configs/* artifact/ | |
- name: edit boot.ini | |
run: | | |
find artifact/ -name 'hekate_ctcaer_*.bin' -exec basename {} \; | | |
xargs -I{} sed -i 's/<payload>/{}/g' artifact/boot.ini | |
- name: prepare payload | |
run: | | |
find artifact/ -name 'hekate_ctcaer_*.bin' -exec basename {} \; | | |
xargs -I{} cp artifact/{} scripts/payload.bin | |
- name: build boot.dat | |
run: python scripts/tx_custom_boot.py scripts/payload.bin artifact/boot.dat | |
- name: delete shits | |
run: rm -rf artifact/switch/.overlays | |
- name: duplicate | |
run: cp -r artifact/ artifact-legacy/ | |
- name: remove sys-patch | |
run: rm -rf artifact-legacy/atmosphere/contents/420000000000000B/ artifact-legacy/config/ | |
- name: edit boot entry | |
run: sed -i 's/^\s*;\(.*\)$/\1/' artifact-legacy/bootloader/hekate_ipl.ini | |
- name: download sigpatches | |
run: wget https://sigmapatches.su/sigpatches.zip | |
- name: extract sigpatches | |
run: unzip sigpatches.zip -d artifact-legacy/ | |
- name: upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifact-syspatches | |
path: artifact | |
- name: upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifact-sigpatches | |
path: artifact-legacy | |