aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/run-all-tests.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/run-all-tests.yml b/.github/workflows/run-all-tests.yml
index 3d735aca..a3830cd1 100644
--- a/.github/workflows/run-all-tests.yml
+++ b/.github/workflows/run-all-tests.yml
@@ -13,6 +13,7 @@ jobs:
build_and_test:
runs-on: ${{ matrix.os }}
env:
+ ALL_TARGETS: //... -//third_party/...
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
@@ -24,6 +25,10 @@ jobs:
- os: macos-latest
arch: "darwin"
cache: "/private/var/tmp"
+ - jdk: 8
+ jdk8_flag: "--//third_party/jni:jdk_8"
+ - jdk: 16
+ jdk8_flag: "--no//third_party/jni:jdk_8"
steps:
- uses: actions/checkout@v2
@@ -44,10 +49,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 --disk_cache=${{ matrix.cache }} -c opt //...
+ run: ./bazelisk-${{ matrix.arch }}-amd64 build --disk_cache=${{ matrix.cache }} -c opt ${{ matrix.jdk8_flag }} -- ${{ env.ALL_TARGETS }}
- name: Test
- run: ./bazelisk-${{ matrix.arch }}-amd64 test --disk_cache=${{ matrix.cache }} -c opt --test_tag_filters="-broken-on-${{ matrix.arch }}" //...
+ run: ./bazelisk-${{ matrix.arch }}-amd64 test --disk_cache=${{ matrix.cache }} -c opt ${{ matrix.jdk8_flag }} --test_tag_filters="-broken-on-${{ matrix.arch }}" -- ${{ env.ALL_TARGETS }}
- name: Upload test logs
if: always()