From 52f8d0357a6cb4ecf401ba6773223afed711d345 Mon Sep 17 00:00:00 2001
From: Francisco Javier Trujillo Mata <[EMAIL REDACTED]>
Date: Sun, 20 Mar 2022 18:51:37 +0100
Subject: [PATCH] Add PS2 CI config
---
.github/workflows/ps2.yaml | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
create mode 100644 .github/workflows/ps2.yaml
diff --git a/.github/workflows/ps2.yaml b/.github/workflows/ps2.yaml
new file mode 100644
index 00000000000..da777cddde9
--- /dev/null
+++ b/.github/workflows/ps2.yaml
@@ -0,0 +1,30 @@
+name: Build (Sony Playstation 2)
+
+on: [push, pull_request]
+
+jobs:
+ ps2:
+ runs-on: ubuntu-latest
+ container: ps2dev/ps2dev:latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Setup dependencies
+ run: |
+ apk update
+ apk add cmake gmp mpc1 mpfr4 make
+ - name: Configure CMake
+ run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$PS2DEV/ps2sdk/ps2dev.cmake -DSDL_TESTS=ON
+ - name: Build
+ run: cmake --build build
+
+ - 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@v3
+ with:
+ name: tests-${{ steps.slug.outputs.sha8 }}
+ path: |
+ build/test