Skip to content

Update actions/cache action to v4.3.0 #3737

Update actions/cache action to v4.3.0

Update actions/cache action to v4.3.0 #3737

Workflow file for this run

name: Ubuntu
on:
push:
pull_request:
jobs:
test-opt:
name: Build everything
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@v5
- name: Mount bazel cache
uses: actions/cache@v4.3.0
with:
path: "~/.cache/bazel"
key: bazel-gcc-${{ runner.os }}-${{ hashFiles('.bazelrc', '.bazelversion', 'WORKSPACE*', 'MODULE.bazel') }}
restore-keys: |
bazel-gcc-${{ runner.os }}-
bazel-gcc-
# - run: sudo apt install -y build-essential
- run: bazel test -c dbg -s //...
coverage:
name: Gather coverage metrics
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@v5
- name: Mount bazel cache
uses: actions/cache@v4.3.0
with:
path: "~/.cache/bazel"
key: bazel-coverage-${{ runner.os }}-${{ hashFiles('.bazelrc', '.bazelversion', 'WORKSPACE*', 'MODULE.bazel') }}
restore-keys: |
bazel-coverage-${{ runner.os }}-
bazel-coverage-
- name: Print the list of targets
run: bazel query --output label_kind //...
- run: bazel coverage --instrument_test_targets --collect_code_coverage --test_tag_filters=-fixme --combined_report=lcov --test_output=all //...
- uses: codecov/codecov-action@v5
with:
slug: masc-ucsc/livehd
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./bazel-out/_coverage