push.yml: force tests to be re-run after building the 2nd flavor #1176
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
--- | |
# GitHub Actions workflow for commits pushed to the Libbulletjme repo - all branches | |
name: CI at GitHub | |
on: [push] | |
jobs: | |
Java8-Linux: | |
if: contains(toJson(github.event.commits), '[ci skip] ') == false | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 8 | |
- run: sudo apt-get update | |
- run: sudo apt-get install -y g++-multilib | |
- uses: actions/checkout@v4 | |
- run: ./gradlew run build --console=plain --no-daemon -Pflavor=Dp -Pgithub=debug64 | |
- if: failure() | |
run: cat build/reports/tests/test/classes/TestLibbulletjme.html | |
Java11-Linux: | |
if: contains(toJson(github.event.commits), '[ci skip] ') == false | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- uses: actions/checkout@v4 | |
- uses: gradle/wrapper-validation-action@v2 | |
- uses: mattsb42/not-grep@master | |
with: | |
config-file: .github/not-grep.toml | |
- run: sudo apt-get update | |
- run: sudo apt-get install -y g++-multilib | |
- run: ./gradlew run build --console=plain --no-daemon -Pflavor=Sp -Pgithub=debug64 | |
- if: failure() | |
run: cat build/reports/tests/test/classes/TestLibbulletjme.html | |
Java11-MacOS: | |
if: contains(toJson(github.event.commits), '[ci skip] ') == false | |
runs-on: macOS-13 | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- uses: actions/checkout@v4 | |
- run: ./gradlew run build --console=plain -Pflavor=Dp -Pgithub=debug64 | |
- run: ./gradlew run cleanTest build --console=plain -Pflavor=Sp -Pgithub=debug64 | |
- if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: crash-log | |
path: '*.log' | |
Java11-Windows: | |
if: contains(toJson(github.event.commits), '[ci skip] ') == false | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- uses: actions/checkout@v4 | |
- run: ./gradlew run build --console=plain --no-daemon -Pflavor=Sp -Pgithub=debug64 | |
shell: bash | |
- if: failure() | |
run: cat build/reports/tests/test/classes/TestLibbulletjme.html | |
Java17-Linux: | |
if: contains(toJson(github.event.commits), '[ci skip] ') == false | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- run: sudo apt-get update | |
- run: sudo apt-get install -y g++-multilib | |
- uses: actions/checkout@v4 | |
- run: ./gradlew run build --console=plain --no-daemon -Pflavor=Dp -Pgithub=debug64 | |
- if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: crash-log | |
path: '*.log' | |
Java17-MacOS: | |
if: contains(toJson(github.event.commits), '[ci skip] ') == false | |
runs-on: macOS-14 | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- uses: actions/checkout@v4 | |
- run: ./gradlew run build --console=plain -Pflavor=Dp -Pgithub=debug64arm | |
- run: ./gradlew run cleanTest build --console=plain -Pflavor=Sp -Pgithub=debug64arm | |
- if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: crash-log | |
path: '*.log' | |
Java21-Windows: | |
if: contains(toJson(github.event.commits), '[ci skip] ') == false | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 21 | |
- uses: actions/checkout@v4 | |
- run: ./gradlew run build --console=plain --no-daemon -Pflavor=Dp -Pgithub=debug64 | |
shell: bash | |
- if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: crash-log | |
path: '*.log' |