Merge remote-tracking branch 'upstream/master' #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |