summary refs log tree commit diff
path: root/.github/workflows/build_ps2.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build_ps2.yml')
-rw-r--r--.github/workflows/build_ps2.yml46
1 files changed, 46 insertions, 0 deletions
diff --git a/.github/workflows/build_ps2.yml b/.github/workflows/build_ps2.yml
new file mode 100644
index 0000000..e1ca063
--- /dev/null
+++ b/.github/workflows/build_ps2.yml
@@ -0,0 +1,46 @@
+name: Build latest (PS2)
+# trigger via either push to selected branches or on manual run
+on:
+  push:
+    branches:
+      - main
+      - master
+  workflow_dispatch:
+
+concurrency:
+  group: ${{ github.ref }}-ps2
+  cancel-in-progress: true
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    container:
+      image: ghcr.io/ps2dev/ps2sdk:latest
+    steps:
+      - uses: actions/checkout@v4
+      - name: Compile PS2 build
+        id: compile
+        run: |
+          apk add make mpc1 curl
+          make ps2
+          
+
+      - uses: ./.github/actions/notify_failure
+        if: ${{ always() && steps.compile.outcome == 'failure' }}
+        with:
+          NOTIFY_MESSAGE: 'Failed to compile PS2 build'
+          WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
+          
+          
+      - uses: ./.github/actions/upload_build
+        if: ${{ always() && steps.compile.outcome == 'success' }}
+        with:
+          SOURCE_FILE: 'ClassiCube-ps2.elf'
+          DEST_NAME: 'ClassiCube-ps2.elf'
+          
+          
+      - uses: ./.github/actions/notify_success
+        if: ${{ always() && steps.compile.outcome == 'success' }}
+        with:
+          DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
+          WORKFLOW_NAME: 'ps2'
\ No newline at end of file