File tree Expand file tree Collapse file tree 1 file changed +4
-28
lines changed Expand file tree Collapse file tree 1 file changed +4
-28
lines changed Original file line number Diff line number Diff line change 56
56
- name : Install Rust
57
57
uses : dtolnay/rust-toolchain@stable
58
58
59
- - name : Cache dependencies
60
- uses : actions/cache@v3
61
- with :
62
- path : |
63
- ~/.cargo/registry
64
- ~/.cargo/git
65
- target
66
- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
67
- restore-keys : ${{ runner.os }}-cargo-
59
+ - uses : Swatinem/rust-cache@v2
68
60
69
61
- name : Run clippy
70
62
run : cargo clippy --all-targets --all-features -- -D warnings
93
85
- name : Create venv for python
94
86
run : uv venv
95
87
96
- - name : Cache dependencies
97
- uses : actions/cache@v3
98
- with :
99
- path : |
100
- ~/.cargo/registry
101
- ~/.cargo/git
102
- target
103
- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
104
- restore-keys : ${{ runner.os }}-cargo-
88
+ - uses : Swatinem/rust-cache@v2
105
89
106
90
- name : Run tests
107
91
run : cargo test --all-features
@@ -117,15 +101,7 @@ jobs:
117
101
- name : Install Rust
118
102
uses : dtolnay/rust-toolchain@stable
119
103
120
- - name : Cache dependencies
121
- uses : actions/cache@v3
122
- with :
123
- path : |
124
- ~/.cargo/registry
125
- ~/.cargo/git
126
- target
127
- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
128
- restore-keys : ${{ runner.os }}-cargo-
104
+ - uses : Swatinem/rust-cache@v2
129
105
130
106
- name : Cargo login
131
107
run : cargo login ${{ secrets.CRATES_TOKEN }}
@@ -146,4 +122,4 @@ jobs:
146
122
- name : Publish rmcp
147
123
if : ${{ startsWith(github.ref, 'refs/tags/release') }}
148
124
continue-on-error : true
149
- run : cargo publish -p rmcp
125
+ run : cargo publish -p rmcp
You can’t perform that action at this time.
0 commit comments