ClassiCube/.github/workflows/build_saturn.yml

59 lines
1.7 KiB
YAML
Raw Normal View History

2024-04-23 18:00:56 -04:00
name: Build latest (Saturn)
# 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:
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: |
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 }}'
- 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-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'
- uses: ./.github/actions/notify_success
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
WORKFLOW_NAME: 'saturn'