This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +28
-24
lines changed Expand file tree Collapse file tree 3 files changed +28
-24
lines changed Original file line number Diff line number Diff line change 62
62
steps :
63
63
- uses : actions/checkout@v3
64
64
65
- - name : Cache cargo registry and index
66
- uses : actions/cache@v3
67
- with :
68
- path : |
69
- ~/.cargo/registry
70
- ~/.cargo/git
71
- key : ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-registry-and-index-${{ hashFiles('**/Cargo.lock') }}
72
-
73
65
- name : Cache cargo target dir
74
66
uses : actions/cache@v3
75
67
with :
@@ -103,6 +95,13 @@ jobs:
103
95
if : matrix.os == 'windows-latest'
104
96
run : git config --global core.autocrlf false
105
97
98
+ - name : Use sparse cargo registry
99
+ run : |
100
+ cat >> ~/.cargo/config.toml <<EOF
101
+ [unstable]
102
+ sparse-registry = true
103
+ EOF
104
+
106
105
- name : Prepare dependencies
107
106
run : ./y.rs prepare
108
107
Original file line number Diff line number Diff line change 13
13
steps :
14
14
- uses : actions/checkout@v3
15
15
16
+ - name : Use sparse cargo registry
17
+ run : |
18
+ cat >> ~/.cargo/config.toml <<EOF
19
+ [unstable]
20
+ sparse-registry = true
21
+ EOF
22
+
16
23
- name : Prepare dependencies
17
24
run : |
18
25
git config --global user.email "[email protected] "
Original file line number Diff line number Diff line change @@ -10,20 +10,19 @@ jobs:
10
10
steps :
11
11
- uses : actions/checkout@v3
12
12
13
- - name : Cache cargo registry and index
14
- uses : actions/cache@v3
15
- with :
16
- path : |
17
- ~/.cargo/registry
18
- ~/.cargo/git
19
- key : ${{ runner.os }}-cargo-registry-and-index-${{ hashFiles('**/Cargo.lock') }}
20
-
21
13
- name : Cache cargo target dir
22
14
uses : actions/cache@v3
23
15
with :
24
16
path : build/cg_clif
25
17
key : ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
26
18
19
+ - name : Use sparse cargo registry
20
+ run : |
21
+ cat >> ~/.cargo/config.toml <<EOF
22
+ [unstable]
23
+ sparse-registry = true
24
+ EOF
25
+
27
26
- name : Prepare dependencies
28
27
run : |
29
28
git config --global user.email "[email protected] "
@@ -38,20 +37,19 @@ jobs:
38
37
steps :
39
38
- uses : actions/checkout@v3
40
39
41
- - name : Cache cargo registry and index
42
- uses : actions/cache@v3
43
- with :
44
- path : |
45
- ~/.cargo/registry
46
- ~/.cargo/git
47
- key : ${{ runner.os }}-cargo-registry-and-index-${{ hashFiles('**/Cargo.lock') }}
48
-
49
40
- name : Cache cargo target dir
50
41
uses : actions/cache@v3
51
42
with :
52
43
path : build/cg_clif
53
44
key : ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
54
45
46
+ - name : Use sparse cargo registry
47
+ run : |
48
+ cat >> ~/.cargo/config.toml <<EOF
49
+ [unstable]
50
+ sparse-registry = true
51
+ EOF
52
+
55
53
- name : Prepare dependencies
56
54
run : |
57
55
git config --global user.email "[email protected] "
You can’t perform that action at this time.
0 commit comments