Ensure outputs are reproducable across all OS's. (#363)

This commit is contained in:
modmuss50
2021-03-15 23:31:18 +00:00
committed by GitHub
parent 7231b9e053
commit e6ac2afc7b
12 changed files with 97 additions and 35 deletions

View File

@@ -66,7 +66,32 @@ jobs:
TEST_WARNING_MODE: fail
- uses: actions/upload-artifact@v2
if: ${{ always() }}
if: ${{ failure() }}
with:
name: ${{ matrix.test }} (${{ matrix.java }}) Results
path: build/reports/
# Special case this test to run across all os's
reproducible_build_test:
needs: build
strategy:
fail-fast: false
matrix:
java: [ 1.8, 11, 15 ]
os: [ windows-2019, ubuntu-20.04, macos-10.15 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- run: ./gradlew test --tests *ReproducibleBuildTest --stacktrace
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: Reproducible Build ${{ matrix.os }} (${{ matrix.java }}) Results
path: build/reports/