From 2cf0660966b1ea40935eb5c07192cb06b04b6c13 Mon Sep 17 00:00:00 2001 From: Francisco Javier Trujillo Mata Date: Fri, 17 Jul 2020 23:26:14 +0200 Subject: [PATCH] Add PS2 CI/CD --- .github/workflows/compilation.yml | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 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..8525a5c --- /dev/null +++ b/.github/workflows/compilation.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + pull_request: + repository_dispatch: + types: [run_build] + +jobs: + build-ps2: + runs-on: ubuntu-latest + container: ps2dev/ps2dev:latest + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies + run: | + apk add build-base git bash + + - name: Compile project + run: | + make platform=ps2 clean all + + - name: Get short SHA + id: slug + run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" + + - name: Upload artifacts + if: ${{ success() }} + uses: actions/upload-artifact@v2 + with: + name: race_libretro_ps2-${{ steps.slug.outputs.sha8 }} + path: race_libretro_ps2.a