From 2d2592a890a8b87753aa970d940f661e190f01c3 Mon Sep 17 00:00:00 2001 From: wiidev Date: Thu, 16 Feb 2023 23:40:03 +0000 Subject: [PATCH] Add GitHub CI --- .github/workflows/main.yml | 42 ++++++++++++++++++++++++++++++++++++++ .gitignore | 19 +++++++++-------- Makefile | 2 +- 3 files changed, 53 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..810efe3 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,42 @@ +name: Build binaries + +on: + push: + branches: + - "**" + paths-ignore: + - '**.md' + - '.github/ISSUE_TEMPLATE/**' + - '.github/FUNDING.yml' + - '.github/**/*.md' + pull_request: + paths-ignore: + - '**.md' + - '.github/ISSUE_TEMPLATE/**' + - '.github/FUNDING.yml' + - '.github/**/*.md' + +jobs: + build: + runs-on: ubuntu-latest + container: devkitpro/devkitppc:20230110 + steps: + - uses: actions/checkout@v3 + + - name: Compile + run: make + + - name: Package + run: | + mkdir -p upload/apps/yawmME + cp boot.dol upload/apps/yawmME + cp boot.elf upload/apps/yawmME/yawmME_boot.elf + cp yawmME/icon.png upload/apps/yawmME + cp yawmME/meta.xml upload/apps/yawmME + echo "sha=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: yawmME-${{ env.sha }} + path: upload diff --git a/.gitignore b/.gitignore index a3225cd..3c74d80 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,10 @@ -################################################################################ -# This .gitignore file was automatically created by Microsoft(R) Visual Studio. -################################################################################ - -/.vs -/source/boot/build/appboot.elf.map -/source/boot/build -/source/boot/appboot.elf -/source/boot/appboot.dol +*.bat +*.dol +*.elf +*.exe +.vs/ +.vscode/ +build/ +source/boot/build/ +/yawmME.zip +/wiiload diff --git a/Makefile b/Makefile index fa36586..8640072 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ include $(DEVKITPPC)/wii_rules # SOURCES is a list of directories containing source code # INCLUDES is a list of directories containing extra header files #--------------------------------------------------------------------------------- -TARGET := $(notdir $(CURDIR)) +TARGET := boot BUILD := build SOURCES := source include source/libtinysmb source/libpng source/libpng/pngu DATA := data