File tree Expand file tree Collapse file tree 1 file changed +33
-6
lines changed Expand file tree Collapse file tree 1 file changed +33
-6
lines changed Original file line number Diff line number Diff line change 5
5
6
6
env :
7
7
CARGO_TERM_COLOR : always
8
+ CARGO_NET_RETRY : 10
9
+ RUSTC_WRAPPER : sccache
10
+ RUST_BACKTRACE : 1
11
+ # Enable parallel compilation
12
+ RUSTC_PARALLEL_COMPILER : true
8
13
9
14
jobs :
10
15
build :
@@ -15,11 +20,11 @@ jobs:
15
20
os : [macos-14, macos-latest, windows-latest]
16
21
include :
17
22
- os : macos-14
18
- name : " macOS ARM"
23
+ name : ' macOS ARM'
19
24
- os : macos-latest
20
- name : " macOS x86"
25
+ name : ' macOS x86'
21
26
- os : windows-latest
22
- name : " Windows"
27
+ name : ' Windows'
23
28
24
29
runs-on : ${{ matrix.os }}
25
30
28
33
with :
29
34
submodules : recursive
30
35
31
- - name : Build
32
- run : cargo build
36
+ # Install and setup sccache
37
+ - name : Install sccache
38
+ uses :
mozilla-actions/[email protected]
39
+
40
+ # Setup Rust toolchain with caching
41
+ - name : Setup Rust
42
+ uses : actions-rs/toolchain@v1
43
+ with :
44
+ profile : minimal
45
+ toolchain : stable
46
+
47
+ # Cache dependencies and build outputs
48
+ - name : Cache cargo registry
49
+ uses : actions/cache@v3
50
+ with :
51
+ path : |
52
+ ~/.cargo/registry
53
+ ~/.cargo/git
54
+ target
55
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
56
+ restore-keys : |
57
+ ${{ runner.os }}-cargo-
33
58
34
59
- name : Run tests
35
- run : cargo test
60
+ uses : actions-rs/cargo@v1
61
+ with :
62
+ command : test
You can’t perform that action at this time.
0 commit comments