add gh workflow

This commit is contained in:
Matteias Collet 2022-11-27 03:38:01 +00:00 committed by GitHub
parent f9668cb4ac
commit 011d2f9d35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 0 deletions

11
.github/Build.Dockerfile vendored Normal file
View file

@ -0,0 +1,11 @@
FROM devkitpro/devkitppc:20210726
ARG VERSION
ENV PATH="${PATH}:/opt/devkitpro/devkitPPC/bin"
ENV VERSION=${VERSION}
RUN apt-get update && apt-get install make
WORKDIR /build
ENTRYPOINT make VERSION=${VERSION}

30
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Build
on: push
jobs:
build:
if: github.repository_owner == 'bitpatty'
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version:
- 1
- 2
- 3
- 4
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build Docker Image
run: docker build --build-arg VERSION=${{ matrix.version }} -t build:base -f ./.github/Build.Dockerfile .
- name: Build Project
run: docker run --mount type=bind,source="$(pwd)",target=/build build:base
- name: Upload Artifactes
uses: actions/upload-artifact@master
with:
name: build-artifact
path: out
retention-days: 7