2024-04-23 18:00:56 -04:00
|
|
|
name: Build latest (Saturn)
|
2024-05-13 08:24:47 -04:00
|
|
|
# trigger via either push to selected branches or on manual run
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-05-16 04:47:09 -04:00
|
|
|
- main
|
2024-05-13 08:24:47 -04:00
|
|
|
- master
|
|
|
|
workflow_dispatch:
|
2024-04-23 18:00:56 -04:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.ref }}-saturn
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
2024-07-08 17:58:39 -04:00
|
|
|
image: ijacquez/yaul:1.0.10
|
2024-04-23 18:00:56 -04:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Compile Saturn build
|
|
|
|
id: compile
|
|
|
|
run: |
|
2024-05-17 09:14:59 -04:00
|
|
|
apt-get update
|
|
|
|
apt-get -y install curl
|
2024-04-23 18:00:56 -04:00
|
|
|
make saturn
|
|
|
|
|
|
|
|
- uses: ./.github/actions/notify_failure
|
|
|
|
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
|
|
|
with:
|
|
|
|
NOTIFY_MESSAGE: 'Failed to compile Saturn build'
|
|
|
|
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
|
|
|
|
2024-04-24 07:35:36 -04:00
|
|
|
|
|
|
|
- uses: ./.github/actions/upload_build
|
|
|
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
|
|
|
with:
|
|
|
|
SOURCE_FILE: 'build-saturn/ClassiCube-saturn.elf'
|
2024-04-24 07:58:31 -04:00
|
|
|
DEST_NAME: 'ClassiCube-saturn.elf'
|
2024-04-24 07:35:36 -04:00
|
|
|
|
2024-04-23 18:00:56 -04:00
|
|
|
- uses: ./.github/actions/upload_build
|
|
|
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
|
|
|
with:
|
|
|
|
SOURCE_FILE: 'ClassiCube-saturn.iso'
|
2024-05-09 07:30:46 -04:00
|
|
|
DEST_NAME: 'ClassiCube-saturn.iso'
|
|
|
|
|
|
|
|
- uses: ./.github/actions/upload_build
|
|
|
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
|
|
|
with:
|
|
|
|
SOURCE_FILE: 'ClassiCube-saturn.cue'
|
2024-07-08 17:58:39 -04:00
|
|
|
DEST_NAME: 'ClassiCube-saturn.cue'
|
2024-08-16 20:26:42 -04:00
|
|
|
|
|
|
|
|
|
|
|
- uses: ./.github/actions/notify_success
|
|
|
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
|
|
|
with:
|
|
|
|
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
|
|
|
WORKFLOW_NAME: 'saturn'
|