Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MentalBlank authored Oct 26, 2024
1 parent 03b0ce3 commit 12636c4
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
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

0 comments on commit 12636c4

Please sign in to comment.