2023-07-16 02:56:11 -04:00
|
|
|
name: Build latest (PSP)
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.ref }}-psp
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
2023-07-26 07:42:03 -04:00
|
|
|
build-PSP:
|
2023-09-01 06:10:30 -04:00
|
|
|
if: github.ref_name == github.event.repository.default_branch
|
2023-07-16 02:56:11 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: pspdev/pspdev:latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-07-26 07:42:03 -04:00
|
|
|
- name: Compile PSP build
|
|
|
|
id: compile
|
2023-07-16 02:56:11 -04:00
|
|
|
run: |
|
|
|
|
make psp
|
2023-09-16 22:32:53 -04:00
|
|
|
|
2023-07-16 02:56:11 -04:00
|
|
|
|
2023-09-16 22:32:53 -04:00
|
|
|
# otherwise notify_failure doesn't work
|
|
|
|
- name: Install curl when necessary
|
|
|
|
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
2023-09-18 05:25:44 -04:00
|
|
|
run: apk add curl curl-dev
|
2023-09-16 22:32:53 -04:00
|
|
|
|
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-09-16 22:32:53 -04:00
|
|
|
|
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'
|
2023-12-05 05:30:47 -05:00
|
|
|
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'
|