File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change 45
45
- name : Checkout code
46
46
uses : actions/checkout@v4
47
47
48
- - name : Cache Cargo registry
49
- uses : actions/cache@v4
50
- with :
51
- path : |
52
- ~/.cargo/registry
53
- ~/.cargo/git
54
- key : ${{ matrix.os_name }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
55
-
56
- - name : Cache Cargo build
57
- uses : actions/cache@v4
58
- with :
59
- path : target
60
- key : ${{ matrix.os_name }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
61
- restore-keys : |
62
- ${{ matrix.os_name }}-cargo-build-
63
-
64
48
- name : Install libudev development package
65
49
if : matrix.run_on == 'ubuntu-latest'
66
50
run : sudo apt-get update && sudo apt-get install -y libudev-dev
@@ -111,6 +95,22 @@ jobs:
111
95
- name : Install Rust target
112
96
run : rustup target add ${{ matrix.target }}
113
97
98
+ - name : Cache Cargo registry
99
+ uses : actions/cache@v4
100
+ with :
101
+ path : |
102
+ ~/.cargo/registry
103
+ ~/.cargo/git
104
+ key : ${{ matrix.os_name }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
105
+
106
+ - name : Cache Cargo build
107
+ uses : actions/cache@v4
108
+ with :
109
+ path : target
110
+ key : ${{ matrix.os_name }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
111
+ restore-keys : |
112
+ ${{ matrix.os_name }}-cargo-build-
113
+
114
114
- name : Build binary
115
115
run : |
116
116
cargo build --release --target=${{ matrix.target }}
You can’t perform that action at this time.
0 commit comments