aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/run-all-tests.yml
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:11:43 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:11:43 +0000
commit4237803c029e89b64bce20afafc9a4a2fba26824 (patch)
tree3243e58e56d3a8dee60c582a2c917d18edc9bd5a /.github/workflows/run-all-tests.yml
parenta74c14e5721cfd85dd0d0ebc3789ac0657564b7b (diff)
parentba37c2e361c2ba91bacc47fcae5383c52e50f6be (diff)
downloadjazzer-api-4237803c029e89b64bce20afafc9a4a2fba26824.tar.gz
Change-Id: I58831e6d1075adffc7e1073cbae60487cf7ca5b6
Diffstat (limited to '.github/workflows/run-all-tests.yml')
-rw-r--r--.github/workflows/run-all-tests.yml18
1 files changed, 8 insertions, 10 deletions
diff --git a/.github/workflows/run-all-tests.yml b/.github/workflows/run-all-tests.yml
index 2af6f5ec..35334b89 100644
--- a/.github/workflows/run-all-tests.yml
+++ b/.github/workflows/run-all-tests.yml
@@ -15,13 +15,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-11, windows-latest]
- jdk: [8, 15, 17]
- exclude:
- # Only test against JDK 15 with Ubuntu since this is what OSS-Fuzz uses.
- - os: macos-11
- jdk: 15
- - os: windows-latest
- jdk: 15
+ jdk: [8, 17]
include:
- os: ubuntu-latest
arch: "linux"
@@ -29,7 +23,7 @@ jobs:
- os: macos-11
arch: "macos-x86_64"
# Always use the toolchain as UBSan produces linker errors with Apple LLVM 13.
- bazel_args: "--config=toolchain --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-darwin"
+ bazel_args: "--config=toolchain --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-darwin --xcode_version_config=//.github:host_xcodes"
cache: "/private/var/tmp/bazel-disk"
- os: windows-latest
arch: "windows"
@@ -49,11 +43,15 @@ jobs:
path: ${{ matrix.cache }}
key: bazel-disk-cache-${{ matrix.arch }}-${{ matrix.jdk }}
+ - name: Set Build Buddy config
+ run: .github/scripts/echoBuildBuddyConfig.sh ${{ secrets.BUILDBUDDY_API_KEY }} >> $GITHUB_ENV
+ shell: bash
+
- name: Build
- run: bazelisk build --config=ci --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }} --disk_cache=${{ matrix.cache }} --java_runtime_version=localjdk_${{ matrix.jdk }} ${{ matrix.bazel_args }} //...
+ run: bazelisk build ${{env.BUILD_BUDDY_CONFIG}} --java_runtime_version=local_jdk_${{ matrix.jdk }} --disk_cache=${{ matrix.cache }} ${{ matrix.bazel_args }} //...
- name: Test
- run: bazelisk test --config=ci --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }} --disk_cache=${{ matrix.cache }} --java_runtime_version=localjdk_${{ matrix.jdk }} ${{ matrix.bazel_args }} //...
+ run: bazelisk test ${{env.BUILD_BUDDY_CONFIG}} --java_runtime_version=local_jdk_${{ matrix.jdk }} --disk_cache=${{ matrix.cache }} ${{ matrix.bazel_args }} //...
- name: Upload test logs
if: always()