ci: use absolute path for XDG_CACHE_HOME as github actions and bazel doesn't resolve ~
automatically
#484
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Utilities | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
name: "Test Utilities (bazel ${{ matrix.bazel-version }} on ${{ matrix.os }})" | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
os: | |
- ubuntu-20.04 | |
- windows-2019 | |
bazel-version: | |
- 5.0.0 | |
- 5.2.0 | |
env: | |
USE_BAZEL_VERSION: ${{ matrix.bazel-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bazelbuild/setup-bazelisk@v3 | |
- name: Mount bazel cache | |
if: ${{ !startsWith(matrix.os, 'windows') }} | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/bazel | |
key: bazel-${{ matrix.os }}-${{ matrix.bazel-version }} | |
- uses: Jimver/cuda-toolkit@v0.2.15 | |
with: | |
cuda: 11.6.2 | |
sub-packages: '["cudart"]' | |
method: network | |
- run: bazelisk test -- //tests/... | |
- run: bazelisk shutdown |