From 8a162be0361db5e4521f2c7ded427e3c45ee772a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20Sobczy=C5=84ski?= <32263891+h4570@users.noreply.github.com> Date: Fri, 28 May 2021 21:16:56 +0200 Subject: [PATCH] Create compilation.yml --- .github/workflows/compilation.yml | 51 +++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/compilation.yml diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml new file mode 100644 index 0000000..1cc4c09 --- /dev/null +++ b/.github/workflows/compilation.yml @@ -0,0 +1,51 @@ +# Based on https://github.com/ps2dev/gsKit/blob/master/.github/workflows/compilation.yml +# Thanks fjtrujy! + +name: CI + +on: + push: + pull_request: + repository_dispatch: + types: [run_build] + +jobs: + build: + runs-on: ubuntu-latest + container: ps2dev/ps2sdk-ports:latest + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies + run: | + apk add build-base git + + - name: Compile engine + working-directory: ./src/engine + env: + ZLIB: ${PS2SDK}/ports + LIBTIFF: ${PS2SDK}/ports + LIBJPEG: ${PS2SDK}/ports + LIBPNG: ${PS2SDK}/ports + run: | + make + + - name: Compile unit test project + working-directory: ./src/unit_tests/ + run: | + make + + - name: Compile cube project + working-directory: ./src/samples/cube/ + run: | + make + + - name: Compile floors project + working-directory: ./src/samples/floors/ + run: | + make + + - name: Compile dolphin project + working-directory: ./src/samples/dolphin/ + run: | + make