add gh workflow
This commit is contained in:
parent
f9668cb4ac
commit
011d2f9d35
2 changed files with 41 additions and 0 deletions
11
.github/Build.Dockerfile
vendored
Normal file
11
.github/Build.Dockerfile
vendored
Normal 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
30
.github/workflows/build.yml
vendored
Normal 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
|
Loading…
Reference in a new issue