Skip to content

Commit 7e314dd

Browse files
chore: test out setup-rust fork
1 parent 1bd1b2e commit 7e314dd

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v4
1313
with:
1414
submodules: true
15-
- uses: moonrepo/setup-rust@v1
15+
- uses: GuillaumeLagrange/setup-rust@feat/cache-extra-identifier
1616
with:
1717
components: rustfmt, clippy
1818
env:
@@ -56,9 +56,10 @@ jobs:
5656
with:
5757
submodules: true
5858

59-
- uses: moonrepo/setup-rust@v1
59+
- uses: GuillaumeLagrange/setup-rust@feat/cache-extra-identifier
6060
with:
6161
targets: ${{ matrix.job.target }}
62+
cache-extra-identifier: ${{ matrix.job.os }}-${{ matrix.job.target }}
6263
env:
6364
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6465

@@ -75,7 +76,7 @@ jobs:
7576
- uses: actions/checkout@v4
7677
with:
7778
submodules: true
78-
- uses: moonrepo/setup-rust@v1
79+
- uses: GuillaumeLagrange/setup-rust@feat/cache-extra-identifier
7980
with:
8081
bins: cargo-msrv
8182
env:
@@ -95,7 +96,7 @@ jobs:
9596
- uses: actions/checkout@v4
9697
with:
9798
submodules: true
98-
- uses: moonrepo/setup-rust@v1
99+
- uses: GuillaumeLagrange/setup-rust@feat/cache-extra-identifier
99100
with:
100101
bins: cargo-nextest
101102
env:
@@ -111,9 +112,10 @@ jobs:
111112
- uses: actions/checkout@v4
112113
with:
113114
submodules: true
114-
- uses: moonrepo/setup-rust@v1
115+
- uses: GuillaumeLagrange/setup-rust@feat/cache-extra-identifier
115116
with:
116117
bins: cargo-nextest
118+
cache-extra-identifier: partition-${{ matrix.partition }}
117119
env:
118120
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
119121
- run: cargo nextest run -p cargo-codspeed --partition hash:${{ matrix.partition }}/5
@@ -132,9 +134,10 @@ jobs:
132134
- uses: actions/checkout@v4
133135
with:
134136
submodules: true
135-
- uses: moonrepo/setup-rust@v1
137+
- uses: GuillaumeLagrange/setup-rust@feat/cache-extra-identifier
136138
with:
137139
cache-target: release
140+
cache-extra-identifier: ${{ matrix.build-args }}
138141
env:
139142
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
140143

@@ -163,9 +166,10 @@ jobs:
163166
- uses: actions/checkout@v4
164167
with:
165168
submodules: true
166-
- uses: moonrepo/setup-rust@v1
169+
- uses: GuillaumeLagrange/setup-rust@feat/cache-extra-identifier
167170
with:
168171
cache-target: release
172+
cache-extra-identifier: walltime-${{ matrix.package }}
169173
env:
170174
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
171175

@@ -199,9 +203,10 @@ jobs:
199203
- uses: actions/checkout@v4
200204
with:
201205
submodules: true
202-
- uses: moonrepo/setup-rust@v1
206+
- uses: GuillaumeLagrange/setup-rust@feat/cache-extra-identifier
203207
with:
204208
targets: ${{ matrix.target }}
209+
cache-extra-identifier: ${{ matrix.runner }}-${{ matrix.target }}
205210
env:
206211
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
207212

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ jobs:
2525
with:
2626
submodules: true
2727
fetch-depth: 0
28-
- uses: moonrepo/setup-rust@v1
28+
- uses: GuillaumeLagrange/setup-rust@feat/cache-extra-identifier
2929
with:
3030
targets: ${{ matrix.target }}
31+
cache-extra-identifier: ${{ matrix.runner }}-${{ matrix.target }}
3132

3233
- name: Install musl tools
3334
run: sudo apt-get update && sudo apt-get install -y musl-tools
@@ -49,7 +50,7 @@ jobs:
4950
with:
5051
submodules: true
5152
fetch-depth: 0
52-
- uses: moonrepo/setup-rust@v0
53+
- uses: GuillaumeLagrange/setup-rust@feat/cache-extra-identifier
5354
with:
5455
cache-target: release
5556
bins: cargo-workspaces

0 commit comments

Comments
 (0)