Skip to content

Commit 0089661

Browse files
committed
Updates to CI config
1 parent 1acdd16 commit 0089661

File tree

1 file changed

+40
-9
lines changed

1 file changed

+40
-9
lines changed

.github/workflows/ci.yml

+40-9
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,29 @@ 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 default 1.81
41+
rustup target add x86_64-unknown-linux-musl
2742
2843
- name: Run tests
2944
run: |
@@ -36,18 +51,34 @@ jobs:
3651
runs-on: ubuntu-22.04
3752
steps:
3853
- uses: actions/checkout@v4
54+
55+
- name: Cache
56+
id: rust-cache
57+
uses: actions/cache@v4
58+
with:
59+
path: |
60+
~/.cargo/bin/
61+
~/.cargo/registry/index/
62+
~/.cargo/registry/cache/
63+
~/.cargo/git/db/
64+
target/
65+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml', '.github/workflows/*.yml') }}
66+
3967
- name: Install packages
4068
run: |
4169
sudo apt update
4270
sudo apt install -y libfuse-dev libfuse3-dev build-essential
4371
44-
- uses: actions-rust-lang/setup-rust-toolchain@v1
45-
with:
46-
components: rustfmt, clippy
72+
- name: Install Rust
73+
#if: steps.rust-cache.outputs.cache-hit != 'true'
74+
run: |
75+
rustup default 1.81
76+
rustup component add rustfmt
77+
rustup component add clippy
4778
48-
- uses: taiki-e/install-action@v2
49-
with:
50-
tool: cargo[email protected]
79+
- name: Install cargo-deny
80+
#if: steps.rust-cache.outputs.cache-hit != 'true'
81+
run: cargo +1.81 install --force --version 0.16.2 cargo-deny --locked
5182

5283
- name: Run tests
5384
run: INTERACTIVE="" make pre

0 commit comments

Comments
 (0)