Build sys-tweak #1
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 sys-tweak | |
on: | |
workflow_dispatch: | |
repository_dispatch: | |
types: [push] | |
repositories: | |
p-sam/switch-sys-tweak | |
jobs: | |
container-build: | |
runs-on: ubuntu-latest | |
container: devkitpro/devkita64 | |
steps: | |
- name: env | |
run: | | |
cat /proc/cpuinfo | |
free -m | |
- name: checkout - project | |
uses: actions/checkout@v2 | |
with: | |
repository: p-sam/switch-sys-tweak | |
ref: develop | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config --global --add safe.directory /__w/sys-tweak-builds/sys-tweak-builds | |
- name: deps - libnx | |
run: | | |
git clone https://github.com/switchbrew/libnx.git /tmp/libnx | |
make -C /tmp/libnx install -j4 | |
- name: deps - ams libs | |
run: | | |
make -C lib/ams/libstratosphere -j4 | |
- name: build - FEAT_ALL | |
run: | | |
make clean | |
make FEAT_ALL="Y" -j4 | |
- name: store - FEAT_ALL | |
uses: actions/upload-artifact@v4 | |
with: | |
name: sys-tweak.nsp | |
path: out/sys-tweak.nsp | |
- name: Package sys-tweak.nsp in.zip file | |
run: | | |
echo "CURRENT_DATE=$(date +%Y%m%d)" >> $GITHUB_ENV | |
mkdir -p out/atmosphere/contents/00FF747765616BFF/ | |
cp out/sys-tweak.nsp out/atmosphere/contents/00FF747765616BFF/exefs.nsp | |
echo '{\n "name": "sys-tweak",\n "tid": "00FF747765616BFF",\n "requires_reboot": true\n}' > out/atmosphere/contents/00FF747765616BFF/toolbox.json | |
mkdir -p out/atmosphere/contents/00FF747765616BFF/flags | |
touch out/atmosphere/contents/00FF747765616BFF/flags/boot2.flag | |
zip -r out/sys-tweak.zip out/atmosphere/ | |
- name: store - FEAT_ALL | |
uses: actions/upload-artifact@v4 | |
with: | |
name: sys-tweak-${{ env.CURRENT_DATE }}.zip | |
path: out/sys-tweak.zip |