mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
58 lines
1.7 KiB
YAML
58 lines
1.7 KiB
YAML
name: Build latest (Saturn)
|
|
# trigger via either push to selected branches or on manual run
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.ref }}-saturn
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ijacquez/yaul:1.0.10
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Compile Saturn build
|
|
id: compile
|
|
run: |
|
|
apt-get update
|
|
apt-get -y install curl
|
|
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'
|
|
DEST_NAME: 'ClassiCube-saturn.elf'
|
|
|
|
- uses: ./.github/actions/upload_build
|
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
|
with:
|
|
SOURCE_FILE: 'ClassiCube-saturn.iso'
|
|
DEST_NAME: 'ClassiCube-saturn.iso'
|
|
|
|
- uses: ./.github/actions/upload_build
|
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
|
with:
|
|
SOURCE_FILE: 'ClassiCube-saturn.cue'
|
|
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'
|