Updated workflow
Some checks failed
Build / Build (push) Failing after 3s

This commit is contained in:
2026-02-13 21:21:52 +01:00
parent ef9c1eaf7a
commit e6676315c7

View File

@@ -1,46 +1,28 @@
name: Release name: Build
on: on:
push:
workflow_dispatch: workflow_dispatch:
issue_comment:
types: [ created ]
jobs: jobs:
build_and_release: build:
name: Build and release name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: devkitpro/devkita64:latest container: devkitpro/devkita64:latest
if: github.event_name == 'workflow_dispatch' || contains(github.event.comment.body, '/release-action')
steps: steps:
- name: Checkout latest code - name: Checkout latest code
uses: actions/checkout@v5 uses: actions/checkout@v5
with: with:
ref: master
clean: true clean: true
fetch-depth: 0
fetch-tags: true
submodules: recursive submodules: recursive
- name: Setup ENV parameters
run: |
VER_FILE=Makefile
VERSION=$(awk '/^APLVERSION_MAJOR/{print $3}' $VER_FILE).$(awk '/^APLVERSION_MINOR/{print $3}' $VER_FILE).$(awk '/^APLVERSION_BUGFX/{print $3}' $VER_FILE)
echo "TAG=${VERSION}" >> "${GITHUB_ENV}"
echo "RELEASE_NAME=AllgemeinerProblemLoeser ${VERSION}" >> "${GITHUB_ENV}"
shell: bash
- name: Build - name: Build
run: | run: |
export DEVKITPRO=/opt/devkitpro export DEVKITPRO=/opt/devkitpro
make all make all
shell: bash shell: bash
- name: Upload Release Asset - name: Upload artifact
uses: softprops/action-gh-release@v2.0.9 uses: actions/upload-artifact@v4
with: with:
name: ${{ env.RELEASE_NAME }} name: AllgemeinerProblemLoeser.bin
tag_name: ${{ env.TAG }} path: output/AllgemeinerProblemLoeser.bin
draft: false
prerelease: false
generate_release_notes: yes
make_latest: true
files: |
output/APL.bin