Skip to content

Commit

Permalink
add dispatch trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tw1r3 committed Mar 1, 2024
1 parent 978bd4d commit 55f9f96
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/pr_tests.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: PR tests
name: Build

on:
workflow_dispatch:
inputs:
opt:
description: "OPT value"
default: "-O3 -g"
pull_request:
paths-ignore:
- '**.md'
Expand Down Expand Up @@ -42,7 +47,7 @@ jobs:
run:
shell: ${{ matrix.shell }}
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- name: Install ubuntu build dependencies
if: startsWith(matrix.os, 'ubuntu')
run: |
Expand Down Expand Up @@ -74,7 +79,9 @@ jobs:
mingw64/mingw-w64-x86_64-SDL2
mingw64/mingw-w64-x86_64-SDL2_net
- name: Build with Symbols
run: make -f Makefiles/${{ matrix.makefile }} release NET_BOARD=1 OUTFILE=../supermodel${{ matrix.outfile_ext }} OPT="-O3 -g" LDOPT=""
run: |
OPT_INPUT="${{ github.event.inputs.opt }}"
make -f Makefiles/${{ matrix.makefile }} release NET_BOARD=1 OUTFILE=../supermodel${{ matrix.outfile_ext }} OPT="${OPT_INPUT:-"-O3 -g"}" LDOPT=""
- name: Validate
run: ./supermodel${{ matrix.outfile_ext }} -print-games
- name: Package
Expand All @@ -90,7 +97,7 @@ jobs:
elif [[ "${{ matrix.archive }}" == "zip" ]] ; then
zip -r supermodel-${{ github.sha }}.zip $FILES
fi
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v3
with:
name: supermodel-${{ runner.os }}-${{ runner.arch }}
path: supermodel-${{ github.sha }}.${{ matrix.archive }}

0 comments on commit 55f9f96

Please sign in to comment.