Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup-nativelink-cloud/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ inputs:

outputs:
enabled:
description: "'true' when a user.bazelrc was written, else 'false'."
description: "'true' when remote cache or execution is enabled, else 'false'."
value: ${{ steps.configure.outputs.enabled }}

runs:
Expand Down
41 changes: 25 additions & 16 deletions .github/workflows/native-bazel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,8 @@ jobs:
- name: Free disk space
uses: ./.github/actions/free-disk

- name: Setup Bazel
uses: >- # v0.19.0
bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86
with:
bazelisk-cache: true
repository-cache: true
disk-cache: ${{ github.workflow }}-${{ matrix.os }}-bazel-${{ matrix.bazel_version }}

- name: Setup NativeLink Cloud
id: setup-nativelink-cloud
uses: ./.github/actions/setup-nativelink-cloud
with:
ci-mode: ${{ vars.NATIVELINK_CI_MODE }}
Expand All @@ -72,6 +65,19 @@ jobs:
# non-Linux runners, so macOS lanes fall back to cache.
exec: ${{ runner.os == 'Linux' && 'on' || 'off' }}

- name: Setup Bazel
uses: >- # v0.19.0
bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86
with:
bazelisk-cache: true
repository-cache: true
# Enable the disk cache when we don't have a usable remote cache.
# The Bazel 8 lane runs --lockfile_mode=off and gets ~2.6% hits on
# the Bazel-9-keyed remote cache, so it is effectively cache-cold;
# give it a persistent disk cache (keyed per bazel_version by the
# action) so repeat runs reuse its own compile outputs.
disk-cache: ${{ steps.setup-nativelink-cloud.outputs.enabled == 'false' || matrix.bazel_version == '8.7.0' }}

- name: Show Bazel version
run: bazel --version

Expand Down Expand Up @@ -119,15 +125,8 @@ jobs:
with:
compose-file: src/bin/docker-compose.store-tester.yaml

- name: Setup Bazel
uses: >- # v0.19.0
bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86
with:
bazelisk-cache: true
repository-cache: true
disk-cache: ${{ github.workflow }}-ubuntu-24.04

- name: Setup NativeLink Cloud
id: setup-nativelink-cloud
uses: ./.github/actions/setup-nativelink-cloud
with:
ci-mode: ${{ vars.NATIVELINK_CI_MODE }}
Expand All @@ -142,6 +141,16 @@ jobs:
# non-Linux runners, so macOS lanes fall back to cache.
exec: ${{ runner.os == 'Linux' && 'on' || 'off' }}

- name: Setup Bazel
uses: >- # v0.19.0
bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86
with:
bazelisk-cache: true
repository-cache: true
# Only enable when we don't have remote cache, otherwise it just gets very slow
# and enormous
disk-cache: ${{ steps.setup-nativelink-cloud.outputs.enabled == 'false'}}

- name: Run Store tester with sentinel
run: |
bazel run //:redis_store_tester \
Expand Down
Loading