diff options
author | Fabian Meumertzheim <meumertzheim@code-intelligence.com> | 2021-08-06 07:56:51 +0200 |
---|---|---|
committer | Fabian Meumertzheim <fabian@meumertzhe.im> | 2021-08-09 09:22:07 +0200 |
commit | 3282049bdf62d053a7ac9a0157ca3ef0f0c4ec27 (patch) | |
tree | b7710bc10daf7f89e1551b054659e4774f07b169 /.github | |
parent | fe5e2bd92cfd89d74b83dffe620bc08d459a398c (diff) | |
download | jazzer-api-3282049bdf62d053a7ac9a0157ca3ef0f0c4ec27.tar.gz |
Find libjvm with a repository rule
libjvm lives in different subpaths of JAVA_HOME, depending both on the
OS and the Java version. Since it is currently not possible to select a
dependency based on the Java version, supporting Java 8 required a
custom build setting. This also broke bazel query (but not cquery).
By loading libjvm from a simple repository rule, we can cover all
OSes and Java versions with a single dependency, even if libjvm.so is
installed in a non-standard location.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/run-all-tests.yml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/.github/workflows/run-all-tests.yml b/.github/workflows/run-all-tests.yml index 007b46f2..64980368 100644 --- a/.github/workflows/run-all-tests.yml +++ b/.github/workflows/run-all-tests.yml @@ -23,10 +23,6 @@ jobs: - os: macos-latest arch: "darwin" cache: "/private/var/tmp" - - jdk: 8 - jdk8_flag: "--//third_party/jni:jdk_8" - - jdk: 15 - jdk8_flag: "--no//third_party/jni:jdk_8" steps: - uses: actions/checkout@v2 @@ -48,10 +44,10 @@ jobs: run: curl -LO https://github.com/bazelbuild/bazelisk/releases/download/v1.7.5/bazelisk-darwin-amd64 && chmod +x bazelisk-darwin-amd64 - name: Build - run: ./bazelisk-${{ matrix.arch }}-amd64 build --config=ci --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }} --disk_cache=${{ matrix.cache }} --java_runtime_version=localjdk_${{ matrix.jdk }} ${{ matrix.jdk8_flag }} //... + run: ./bazelisk-${{ matrix.arch }}-amd64 build --config=ci --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }} --disk_cache=${{ matrix.cache }} --java_runtime_version=localjdk_${{ matrix.jdk }} //... - name: Test - run: ./bazelisk-${{ matrix.arch }}-amd64 test --config=ci --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }} --disk_cache=${{ matrix.cache }} --java_runtime_version=localjdk_${{ matrix.jdk }} ${{ matrix.jdk8_flag }} --test_tag_filters="-broken-on-${{ matrix.arch }}" //... + run: ./bazelisk-${{ matrix.arch }}-amd64 test --config=ci --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }} --disk_cache=${{ matrix.cache }} --java_runtime_version=localjdk_${{ matrix.jdk }} --test_tag_filters="-broken-on-${{ matrix.arch }}" //... - name: Upload test logs if: always() |