From 011d2f9d35f3ac6b238d2e83a2c5313990542623 Mon Sep 17 00:00:00 2001 From: Matteias Collet Date: Sun, 27 Nov 2022 03:38:01 +0000 Subject: [PATCH] add gh workflow --- .github/Build.Dockerfile | 11 +++++++++++ .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/Build.Dockerfile create mode 100644 .github/workflows/build.yml diff --git a/.github/Build.Dockerfile b/.github/Build.Dockerfile new file mode 100644 index 0000000..b13856d --- /dev/null +++ b/.github/Build.Dockerfile @@ -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} \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c9a7443 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 \ No newline at end of file