From 0c661908ab6357ee995986b313f12b7c9fd5b903 Mon Sep 17 00:00:00 2001 From: MeFisto94 Date: Fri, 11 Jun 2021 20:22:14 +0200 Subject: [PATCH] Github Actions: Implement a "Mesa Compliance Testing" using https://github.com/MeFisto94/jme3-testing that runs functional tests on a software renderer to validate rendering works correctly --- .github/workflows/mesa-compliance.yml | 46 +++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/mesa-compliance.yml diff --git a/.github/workflows/mesa-compliance.yml b/.github/workflows/mesa-compliance.yml new file mode 100644 index 0000000000..d956020e1d --- /dev/null +++ b/.github/workflows/mesa-compliance.yml @@ -0,0 +1,46 @@ +name: Mesa Compliance Testing +on: + - push + - pull_request + +jobs: + MesaTests: + name: Mesa Compliance Testing + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + repository: MeFisto94/jme3-testing + - uses: actions/checkout@v2 + with: + path: engine + + - name: setup-docker + uses: docker-practice/actions-setup-docker@0.0.1 + - name: Fetch Docker Image + run: sudo docker pull riccardoblb/buildenvs:javagl + - name: Prebuild Everything # This task is so we don't get the whole compilation output verbosely in the test tasks. + run: ./gradlew assemble + + - name: Test on LWJGL3 + run: | + chmod +x ci-runner.sh + NO_INTERRACTIVE=1 ./ci-runner.sh -Dmesa-llvm-ci=true tests-lwjgl3:test -i + - name: Upload lwjgl3 reports + uses: actions/upload-artifact@v1.0.0 + if: always() + with: + name: reports-lwjgl3 + path: tests-lwjgl3/build/reports + + - name: Test on LWJGL2 + if: always() + run: | + chmod +x ci-runner.sh + NO_INTERRACTIVE=1 ./ci-runner.sh -Dmesa-llvm-ci=true tests-lwjgl2:test -i + - name: Upload lwjgl2 reports + uses: actions/upload-artifact@v1.0.0 + if: always() + with: + name: reports-lwjgl2 + path: tests-lwjgl2/build/reports