Add GitHub CI

This commit is contained in:
wiidev 2023-02-16 23:40:03 +00:00
parent 5f2414755e
commit 2d2592a890
3 changed files with 53 additions and 10 deletions

42
.github/workflows/main.yml vendored Normal file
View File

@ -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

19
.gitignore vendored
View File

@ -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

View File

@ -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