-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(wasm): Fix panic when
Delay
is reused before resetting
- Loading branch information
Showing
5 changed files
with
70 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,26 @@ jobs: | |
- name: cargo doc | ||
run: cargo doc --no-deps | ||
|
||
test_wasm: | ||
name: Test (wasm) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rust: | ||
- stable | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install Rust and add wasm target | ||
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} && rustup target add wasm32-unknown-unknown | ||
- name: Install wasm-pack | ||
uses: taiki-e/cache-cargo-install-action@v1 | ||
with: | ||
tool: [email protected] | ||
- name: cargo test | ||
run: wasm-pack test --firefox --headless -- --features=wasm-bindgen | ||
- name: cargo doc | ||
run: cargo doc --no-deps --target=wasm32-unknown-unknown --features=wasm-bindgen | ||
|
||
style: | ||
name: Style | ||
runs-on: ubuntu-latest | ||
|
@@ -59,14 +79,3 @@ jobs: | |
git -c user.name='ci' -c user.email='ci' commit -m 'Deploy futures-timer API documentation' | ||
git push -f -q https://git:${{ secrets.github_token }}@github.com/${{ github.repository }} HEAD:gh-pages | ||
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master' && github.repository == 'async-rs/futures-timer' | ||
|
||
check_wasm: | ||
name: Check Wasm | ||
needs: [test] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install Rust and add wasm target | ||
run: rustup update stable && rustup target add wasm32-unknown-unknown | ||
- name: cargo check | ||
run: cargo check --target wasm32-unknown-unknown --features wasm-bindgen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters