File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,19 @@ jobs:
24
24
suffix : zip
25
25
name : cargo build
26
26
runs-on : ${{ matrix.os }}
27
+
27
28
steps :
28
29
- uses : actions/checkout@v4
29
30
- uses : dtolnay/rust-toolchain@stable
30
- - uses : Swatinem/rust-cache@v2
31
- with :
32
- key : " release-lto"
31
+
32
+ - name : Run sccache-cache
33
+ uses :
mozilla-actions/[email protected]
34
+
33
35
- run : cargo build --target=${{ matrix.target }} --profile=release-lto
36
+ env :
37
+ SCCACHE_GHA_ENABLED : " true"
38
+ RUSTC_WRAPPER : " sccache"
39
+
34
40
- run : |
35
41
cp target/${{ matrix.target }}/release-lto/${{ matrix.bin }} ${{ matrix.bin }}
36
42
Original file line number Diff line number Diff line change 10
10
steps :
11
11
- uses : actions/checkout@v4
12
12
- uses : dtolnay/rust-toolchain@stable
13
- - uses : Swatinem/rust -cache@v2
14
- with :
15
- key : " test "
13
+ - name : Run sccache -cache
14
+ uses : mozilla-actions/[email protected]
15
+
16
16
- run : cargo check
17
+ env :
18
+ SCCACHE_GHA_ENABLED : " true"
19
+ RUSTC_WRAPPER : " sccache"
You can’t perform that action at this time.
0 commit comments