Skip to content

Commit 7aa0f10

Browse files
committed
Updates to CI config
1 parent 1acdd16 commit 7aa0f10

File tree

1 file changed

+39
-9
lines changed

1 file changed

+39
-9
lines changed

.github/workflows/ci.yml

+39-9
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,28 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v4
19+
20+
- name: Cache
21+
id: rust-cache
22+
uses: actions/cache@v4
23+
with:
24+
path: |
25+
~/.cargo/bin/
26+
~/.cargo/registry/index/
27+
~/.cargo/registry/cache/
28+
~/.cargo/git/db/
29+
target/
30+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml', '.github/workflows/*.yml') }}
31+
1932
- name: Install packages
2033
run: |
2134
sudo apt update
2235
sudo apt install -y ${{ matrix.libfuse }} build-essential
2336
24-
- uses: actions-rust-lang/setup-rust-toolchain@v1
25-
with:
26-
target: x86_64-unknown-linux-musl
37+
- name: Install Rust
38+
#if: steps.rust-cache.outputs.cache-hit != 'true'
39+
run: |
40+
rustup target add x86_64-unknown-linux-musl
2741
2842
- name: Run tests
2943
run: |
@@ -36,18 +50,34 @@ jobs:
3650
runs-on: ubuntu-22.04
3751
steps:
3852
- uses: actions/checkout@v4
53+
54+
- name: Cache
55+
id: rust-cache
56+
uses: actions/cache@v4
57+
with:
58+
path: |
59+
~/.cargo/bin/
60+
~/.cargo/registry/index/
61+
~/.cargo/registry/cache/
62+
~/.cargo/git/db/
63+
target/
64+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml', '.github/workflows/*.yml') }}
65+
3966
- name: Install packages
4067
run: |
4168
sudo apt update
4269
sudo apt install -y libfuse-dev libfuse3-dev build-essential
4370
44-
- uses: actions-rust-lang/setup-rust-toolchain@v1
45-
with:
46-
components: rustfmt, clippy
71+
- name: Install Rust
72+
#if: steps.rust-cache.outputs.cache-hit != 'true'
73+
run: |
74+
rustup toolchain install 1.81
75+
rustup component add rustfmt
76+
rustup component add clippy
4777
48-
- uses: taiki-e/install-action@v2
49-
with:
50-
tool: cargo[email protected]
78+
- name: Install cargo-deny
79+
#if: steps.rust-cache.outputs.cache-hit != 'true'
80+
run: cargo +1.81 install --force --version 0.16.2 cargo-deny --locked
5181

5282
- name: Run tests
5383
run: INTERACTIVE="" make pre

0 commit comments

Comments
 (0)