mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
52 lines
No EOL
1.5 KiB
YAML
52 lines
No EOL
1.5 KiB
YAML
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/upload_build
|
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
|
with:
|
|
SOURCE_FILE: 'ClassiCube-ps2-min.elf'
|
|
DEST_NAME: 'ClassiCube-ps2-min.elf'
|
|
|
|
|
|
- uses: ./.github/actions/notify_success
|
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
|
with:
|
|
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
|
WORKFLOW_NAME: 'ps2' |