Skip to content

Commit b132de1

Browse files
committed
Fix Cargo.lock and add dependency for wasm
1 parent 8bee620 commit b132de1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
~/.cargo/registry
3030
~/.cargo/git
3131
target
32-
key: ${{ runner.os }}-debug-opt3-${{ hashFiles('Cargo.lock') }}
32+
key: ${{ runner.os }}-debug_opt3-${{ hashFiles('**/Cargo.lock') }}
3333
- name: run rust tests
3434
uses: actions-rs/cargo@v1
3535
with:
@@ -56,7 +56,7 @@ jobs:
5656
~/.cargo/registry
5757
~/.cargo/git
5858
target
59-
key: ${{ runner.os }}-release-${{ hashFiles('Cargo.lock') }}
59+
key: ${{ runner.os }}-release-${{ hashFiles('**/Cargo.lock') }}
6060
- name: build rustpython
6161
uses: actions-rs/cargo@v1
6262
with:
@@ -123,6 +123,7 @@ jobs:
123123

124124
wasm:
125125
name: Check the WASM package and demo
126+
needs: rust_tests
126127
runs-on: ubuntu-latest
127128
steps:
128129
- uses: actions/checkout@master
@@ -133,10 +134,9 @@ jobs:
133134
~/.cargo/registry
134135
~/.cargo/git
135136
target
136-
key: ${{ runner.os }}-wasm-${{ hashFiles('**/Cargo.lock') }}
137+
key: ${{ runner.os }}-wasm_opt3-${{ hashFiles('**/Cargo.lock') }}
137138
restore-keys: |
138-
${{ runner.os }}-debug-opt3-${{ hashFiles('Cargo.lock') }}
139-
${{ runner.os }}-debug-opt3
139+
${{ runner.os }}-debug_opt3-${{ hashFiles('**/Cargo.lock') }}
140140
- name: install wasm-pack
141141
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
142142
- name: install geckodriver

0 commit comments

Comments
 (0)