Skip to content

Commit 6094cea

Browse files
committed
fix caches
1 parent 42da84d commit 6094cea

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,6 @@ jobs:
4545
- name: Checkout code
4646
uses: actions/checkout@v4
4747

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-
6448
- name: Install libudev development package
6549
if: matrix.run_on == 'ubuntu-latest'
6650
run: sudo apt-get update && sudo apt-get install -y libudev-dev
@@ -111,6 +95,22 @@ jobs:
11195
- name: Install Rust target
11296
run: rustup target add ${{ matrix.target }}
11397

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+
114114
- name: Build binary
115115
run: |
116116
cargo build --release --target=${{ matrix.target }}

0 commit comments

Comments
 (0)