Skip to content

Commit e1ea73f

Browse files
authored
Bring back caching (#117)
1 parent c4fef8e commit e1ea73f

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

.bazelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ build:ferrocene-coverage --@rules_rust//rust/settings:extra_exec_rustc_flag=-Cco
6666
build:ferrocene-coverage --@rules_rust//rust/settings:extra_exec_rustc_flag=-Cdebuginfo=2
6767
test:ferrocene-coverage --run_under=@score_tooling//coverage:llvm_profile_wrapper
6868

69+
# Coverage needs to have all intermediate .rlibs to be able to proceed
70+
build:ferrocene-coverage --remote_download_all
71+
6972
test:unit-tests --config=linux-x86_64
7073
test:unit-tests --build_tests_only
7174
test:unit-tests --test_tag_filters=-manual
@@ -76,3 +79,6 @@ coverage --combined_report=lcov
7679

7780
# user specific overrides (like proxy settings)
7881
try-import %workspace%/user.bazelrc
82+
83+
# Try import setting from home (CI setup-bazel action for caching uses this to provide proper args like --disk-cache)
84+
try-import ~/.bazelrc

.github/workflows/test_and_docs.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,11 @@ jobs:
4343

4444
- name: Setup Bazel
4545
uses: bazel-contrib/setup-bazel@0.18.0
46-
# Currently disabled due to issue in testing not finding correct libraries
47-
# with:
48-
# bazelisk-cache: true
49-
# disk-cache: ${{ github.workflow }}
50-
# repository-cache: true
51-
# cache-save: ${{ github.event_name == 'push' }}
46+
with:
47+
bazelisk-cache: true
48+
disk-cache: ${{ github.workflow }}
49+
repository-cache: true
50+
cache-save: ${{ github.event_name == 'push' }}
5251

5352
- name: Set up Python 3
5453
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)