wip: Add square speed generator #93
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Runs unit tests on both the generator, and the generated code | |
on: [push] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
jdk: [ 17, 21 ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.jdk }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.jdk }} | |
distribution: "temurin" | |
- name: Setup gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- run: "./gradlew test" | |
- run: "./gradlew proguard" | |
- run: | | |
shopt -s globstar | |
java -jar build/libs/fixie-mini.jar -d ./ -i 1 example-configs/**/*.gddl example-configs/**/*.json | |
- run: "cp .github/build.gradle.test build.gradle" | |
- run: "./gradlew test" | |
- run: "java -jar build/libs/fixie-mini.jar -i 2" | |
- uses: actions/upload-artifact@v4 | |
if: ${{ matrix.jdk == 17 }} | |
with: | |
name: fixie-original.jar | |
path: build/libs/fixie-all.jar | |
- uses: actions/upload-artifact@v4 | |
if: ${{ matrix.jdk == 17 }} | |
with: | |
name: fixie.jar | |
path: build/libs/fixie-mini.jar |