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