Skip to content

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartie95 committed May 1, 2023
1 parent 5cc24f1 commit dc364b8
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
patreon: hartie95
27 changes: 27 additions & 0 deletions .github/workflows/overlay.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: SysDVR-Overlay

on:
workflow_dispatch:
push:
branches: [ master ]
paths:
pull_request:
branches: [ master ]
paths:

jobs:
build:
runs-on: ubuntu-latest
container: devkitpro/devkita64:latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Run build script
run: |
./build.sh
- uses: actions/upload-artifact@v3
with:
name: SysDVR-Overlay-dev
path: release/*/.overlays/*.ovl
18 changes: 18 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
echo "cleaning up before"
rm -r release
make clean
echo "building"
make -j4
result=$?

if [ $result -eq 0 ]
then
echo "creating package"
mkdir -p "release/switch/.overlays"
mv "sysdvr-overlay.ovl" "release/switch/.overlays"
echo "done"
else
echo "build failed" >&2
exit $result
fi

0 comments on commit dc364b8

Please sign in to comment.