Skip to content

Commit b03cf0c

Browse files
committed
feat: enable increamental release for ecosystem ci build
1 parent ccc95d7 commit b03cf0c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ecosystem-benchmark.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ permissions:
2424
# Allow commenting on pull requests
2525
pull-requests: write
2626

27+
env:
28+
# we are going to build release profile for benchmark
29+
CARGO_INCREMENTAL: 1
2730
jobs:
2831
build:
2932
name: Test Linux

.github/workflows/reusable-build-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ on:
2424
env:
2525
# Since CI builds are more akin to from-scratch builds, incremental compilation adds unnecessary dependency-tracking and IO overhead, reducing caching effectiveness.
2626
# https://github.com/rust-lang/rust-analyzer/blob/25368d24308d6a94ffe8b99f0122bcf5a2175322/.github/workflows/ci.yaml#L11
27-
CARGO_INCREMENTAL: 0
27+
CARGO_INCREMENTAL: 1
2828

2929
jobs:
3030
build:
@@ -64,7 +64,7 @@ jobs:
6464
- name: Install Rust Toolchain
6565
uses: ./.github/actions/rustup
6666
with:
67-
key: ${{ inputs.target }}-${{ inputs.profile }}
67+
key: ${{ inputs.target }}-${{ inputs.profile }}-pshu-${{ inputs.prefer_docker == 'true' && 'docker' || 'native' }}
6868
# don't need use cache in self-hosted windows; benefits of build with cargo build are wasted by cache restore
6969
save-if: true
7070

0 commit comments

Comments
 (0)