File tree 1 file changed +10
-12
lines changed
1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -14,21 +14,19 @@ jobs:
14
14
steps :
15
15
- uses : actions/checkout@v4
16
16
17
- - uses : dtolnay/rust-toolchain@stable
18
-
19
17
- uses : Swatinem/rust-cache@v2
18
+ with :
19
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
20
+ restore-keys : |
21
+ ${{ runner.os }}-cargo-
20
22
21
- - name : Verify tag version matches Cargo.toml
22
- run : |
23
- TAG_VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')
24
- CARGO_VERSION=$(cargo pkgid | sed 's/.*#//')
25
- if [ "$TAG_VERSION" != "$CARGO_VERSION" ]; then
26
- echo "Tag version ($TAG_VERSION) does not match Cargo.toml version ($CARGO_VERSION)"
27
- exit 1
28
- fi
23
+ - uses : dtolnay/rust-toolchain@stable
24
+
25
+ - name : Install wasm32 target
26
+ run : rustup target add wasm32-unknown-unknown
29
27
30
- - name : Run tests
31
- run : cargo test --all-features
28
+ - name : Test
29
+ run : cargo test --all-features --locked
32
30
33
31
- name : Verify package
34
32
run : cargo publish --dry-run
You can’t perform that action at this time.
0 commit comments