Add nightly rom releases (#182)

* Add nightly rom releases

* Begin testing CI

* Add tests workflow

* Move release tag workflow

* Fix upload logic for intermediate artifact

* Fix variable add names

* Update build CI

* Update nightly upload location

* Add git hash to output

* Update upload location again

* Update name to have a date

* Adjust date format for consistency
This commit is contained in:
Rickey
2025-10-31 22:00:15 -07:00
committed by GitHub
parent 8c00fbdeb1
commit d32d567c2b
5 changed files with 110 additions and 12 deletions
+20 -11
View File
@@ -4,21 +4,31 @@ on:
push:
branches:
- main
tags:
- "v*"
pull_request:
branches:
- main
workflow_dispatch:
inputs:
clear_cache:
clear-cache:
description: 'Clear docker cache before running'
type: boolean
default: false
workflow_call:
inputs:
upload-build-artifact:
required: true
type: boolean
default: true
jobs:
run-tests-job:
name: Run tests
uses: ./.github/workflows/run_tests_ci_workflow.yml
build:
name: Build ROM
runs-on: ubuntu-latest
needs: run-tests-job
steps:
- name: Checkout repository
uses: actions/checkout@v5
@@ -30,7 +40,7 @@ jobs:
key: docker-images-${{ hashFiles('docker-compose.yml') }}
- name: Clear docker cache (if requested)
if: github.event.inputs.clear_cache == 'true'
if: github.event.inputs.clear-cache == 'true'
run: |
echo "Clearing Docker cache..."
rm -rf /tmp/docker-cache
@@ -53,14 +63,13 @@ jobs:
echo "UID=$(id -u)" >> "$GITHUB_ENV"
echo "GID=$(id -g)" >> "$GITHUB_ENV"
- name: Run Tests
run: cd tests && ./run_tests.sh
- name: Build the project
run: docker compose -f docker-compose.yml run --rm balatro sh -c "make -j$(nproc) && ./scripts/get_memory_map.sh"
- uses: softprops/action-gh-release@v2
if: ${{ startsWith(github.ref, 'refs/tags/') }}
- name: 'Upload Artifact'
if: ${{ inputs.upload-build-artifact }}
uses: actions/upload-artifact@v4
with:
files: |
build/balatro-gba.gba
name: build-out
path: build
retention-days: 5