ClassiCube/.github/workflows/build_psp.yml

54 lines
1.5 KiB
YAML
Raw Permalink Normal View History

name: Build latest (PSP)
# trigger via either push to selected branches or on manual run
on:
push:
branches:
2024-05-16 04:47:09 -04:00
- main
- master
workflow_dispatch:
concurrency:
group: ${{ github.ref }}-psp
cancel-in-progress: true
jobs:
2023-07-26 07:42:03 -04:00
build-PSP:
runs-on: ubuntu-latest
container:
image: pspdev/pspdev:latest
steps:
- uses: actions/checkout@v4
2023-07-26 07:42:03 -04:00
- name: Compile PSP build
id: compile
run: |
apk add curl curl-dev
2024-06-25 18:16:16 -04:00
export PSPSDK=$(psp-config --pspsdk-path)
make psp
2023-07-26 07:42:03 -04:00
- uses: ./.github/actions/notify_failure
if: ${{ always() && steps.compile.outcome == 'failure' }}
with:
NOTIFY_MESSAGE: 'Failed to compile PSP build'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
2023-07-26 07:42:03 -04:00
- uses: ./.github/actions/upload_build
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
2023-08-19 19:28:49 -04:00
SOURCE_FILE: 'EBOOT.PBP'
DEST_NAME: 'EBOOT.PBP'
- uses: ./.github/actions/upload_build
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
SOURCE_FILE: 'ClassiCube-psp.elf'
DEST_NAME: 'ClassiCube-psp.elf'
- uses: ./.github/actions/notify_success
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
2024-06-25 18:16:16 -04:00
WORKFLOW_NAME: 'psp'