Skip to content

Commit

Permalink
Saturn build for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Apr 23, 2024
1 parent 92db4e2 commit ade1769
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/upload_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
name: ${{ inputs.DEST_NAME }}
path: ${{ inputs.SOURCE_FILE }}
31 changes: 31 additions & 0 deletions .github/workflows/build_saturn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build latest (Saturn)
on: [push]

concurrency:
group: ${{ github.ref }}-saturn
cancel-in-progress: true

jobs:
build:
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-latest
container:
image: ijacquez/yaul
steps:
- uses: actions/checkout@v4
- name: Compile Saturn build
id: compile
run: |
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: 'ClassiCube-saturn.iso'
DEST_NAME: 'ClassiCube-saturn.iso'
2 changes: 1 addition & 1 deletion .github/workflows/build_vita.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-latest
container:
image: vitasdk/vitasdk-docker:latest
image: vitasdk/vitasdk:latest
steps:
- uses: actions/checkout@v4
- name: Compile Vita build
Expand Down
2 changes: 1 addition & 1 deletion misc/saturn/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(YAUL_INSTALL_ROOT)/share/build.pre.mk
# Each asset follows the format: <path>;<symbol>. Duplicates are removed
BUILTIN_ASSETS=

SH_PROGRAM := ClassiCube
SH_PROGRAM := ClassiCube-saturn
SH_SRCS := $(wildcard src/*.c)

SH_CFLAGS+= -Os -I. -DPLAT_SATURN
Expand Down

0 comments on commit ade1769

Please sign in to comment.