File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,15 +18,10 @@ jobs:
1818
1919 steps :
2020 - uses : actions/checkout@v4
21- - uses : actions/cache@v3
22- with :
23- path : |
24- ~/.cargo/bin/
25- ~/.cargo/registry/index/
26- ~/.cargo/registry/cache/
27- ~/.cargo/git/db/
28- target/
29- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
21+
22+ - run : rustup toolchain install stable --profile minimal
23+
24+ - uses : Swatinem/rust-cache@v2
3025
3126 - name : Install Neovim
3227 uses : rhysd/action-setup-vim@v1
3934 mkdir -p ~/.local/share/nvim/site/pack/vendor/start
4035 git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
4136
42- - name : Install latest nightly rust
43- uses : actions-rs/toolchain@v1
44- with :
45- toolchain : nightly
46- override : true
47- components : rustfmt, clippy
48-
49- # - name: Run cargo clippy (workspace)
50- # uses: actions-rs/cargo@v1
51- # with:
52- # command: clippy
53- # args: --workspace
54-
55- - name : Run cargo build (workspace)
56- uses : actions-rs/cargo@v1
57- with :
58- command : build
59- args : --workspace
60-
61- - name : Run cargo test
62- uses : actions-rs/cargo@v1
63- with :
64- command : test
65- args : --workspace
37+ - run : cargo fmt --check
38+ - run : cargo clippy --workspace -- -Dwarnings
39+ - run : cargo build --workspace
40+ - run : cargo test --workspace
Original file line number Diff line number Diff line change 2121 target/
2222 key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
2323
24- - name : Install latest nightly rust
25- uses : actions-rs/toolchain@v1
26- with :
27- toolchain : nightly
28- override : true
29- components : rustfmt, clippy
30-
31- - name : Run cargo build --release (workspace)
32- uses : actions-rs/cargo@v1
33- with :
34- command : build
35- args : --workspace --release
24+ - run : cargo build --workspace --release
3625
3726 - uses : " marvinpinto/action-automatic-releases@latest"
3827 with :
You can’t perform that action at this time.
0 commit comments