Skip to content

Commit e496b3f

Browse files
committed
fix(ci): try codecov on hosted runner
1 parent dbb25b2 commit e496b3f

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.github/workflows/coverage.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,31 @@ env:
2828
CI: 1
2929
CARGO_INCREMENTAL: 0
3030
CACHE_TIMEOUT_MINUTES: 5
31+
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
32+
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
3133
RUSTC_WRAPPER: sccache
3234
CC: sccache clang
3335
CXX: sccache clang++
3436
# To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times
3537
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld"
38+
FOREST_F3_SIDECAR_FFI_BUILD_OPT_OUT: 1
39+
FIL_PROOFS_PARAMETER_CACHE: /var/tmp/filecoin-proof-parameters
3640

3741
jobs:
3842
codecov:
3943
name: Coverage
40-
if: github.event.pull_request.draft == false && github.actor != 'dependabot[bot]'
41-
runs-on: buildjet-4vcpu-ubuntu-2204
44+
# if: github.event.pull_request.draft == false && github.actor != 'dependabot[bot]'
45+
runs-on: ubuntu-24.04-arm
4246
timeout-minutes: 45
4347
steps:
48+
- name: Configure SCCache variables
49+
run: |
50+
# External PRs do not have access to 'vars' or 'secrets'.
51+
if [[ "${{secrets.AWS_ACCESS_KEY_ID}}" != "" ]]; then
52+
echo "SCCACHE_ENDPOINT=${{ vars.SCCACHE_ENDPOINT}}" >> $GITHUB_ENV
53+
echo "SCCACHE_BUCKET=${{ vars.SCCACHE_BUCKET}}" >> $GITHUB_ENV
54+
echo "SCCACHE_REGION=${{ vars.SCCACHE_REGION}}" >> $GITHUB_ENV
55+
fi
4456
- uses: actions/checkout@v6
4557
- name: Setup sccache
4658
uses: mozilla-actions/sccache-action@v0.0.9
@@ -51,6 +63,8 @@ jobs:
5163
go-version-file: "go.work"
5264
- uses: taiki-e/install-action@cargo-llvm-cov
5365
- uses: taiki-e/install-action@nextest
66+
- name: Fetch proof params
67+
run: cargo run --bin forest-tool --no-default-features -- fetch-params --keys
5468
- name: Generate code coverage
5569
run: make codecov
5670
# Save lcov.info as an artifact for debugging purposes

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ test-release-docs:
115115
cargo test --profile quick --doc --features doctest-private
116116

117117
codecov:
118-
cargo llvm-cov --workspace --codecov --output-path lcov.info
118+
cargo llvm-cov -p forest-filecoin --no-default-features --codecov --output-path lcov.info
119119

120120
# Checks if all headers are present and adds if not
121121
license:

0 commit comments

Comments
 (0)