Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use `wat` and `wasmprinter` crates from crates.io Don't rely on `wasm2wat` and `wat2wasm` crates if we can avoid it. * Migrate to Github Actions from Travis CI
- Loading branch information
1 parent
8bba9e5
commit 7c1eed3
Showing
13 changed files
with
133 additions
and
217 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 |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rust: [stable, beta, nightly] | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install Rust | ||
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} | ||
- name: Install wabt | ||
run: | | ||
set -e | ||
curl -L https://github.com/WebAssembly/wabt/releases/download/1.0.12/wabt-1.0.12-linux.tar.gz | tar xzf - | ||
echo "##[add-path]`pwd`/wabt-1.0.12" | ||
- name: Install binaryen | ||
run: | | ||
set -e | ||
curl -L https://github.com/WebAssembly/binaryen/releases/download/1.39.1/binaryen-1.39.1-x86_64-linux.tar.gz | tar xzf - | ||
echo "##[add-path]`pwd`/binaryen-1.39.1" | ||
- run: cargo build --all | ||
- run: cargo test --all | ||
- run: cargo check --benches | ||
- run: cargo test --features parallel | ||
- run: cargo test --features parallel --manifest-path crates/tests/Cargo.toml | ||
|
||
fuzz_crate: | ||
name: Fuzz Crate | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install Rust | ||
run: rustup update stable && rustup default stable | ||
- name: Install wabt | ||
run: | | ||
set -e | ||
curl -L https://github.com/WebAssembly/wabt/releases/download/1.0.12/wabt-1.0.12-linux.tar.gz | tar xzf - | ||
echo "##[add-path]`pwd`/wabt-1.0.12" | ||
- name: Install binaryen | ||
run: | | ||
set -e | ||
curl -L https://github.com/WebAssembly/binaryen/releases/download/1.39.1/binaryen-1.39.1-x86_64-linux.tar.gz | tar xzf - | ||
echo "##[add-path]`pwd`/binaryen-1.39.1" | ||
- name: Run fuzzer | ||
run: cargo test -p walrus-fuzz-utils > fuzz.log || (tail -n 1000 fuzz.log && exit 1) | ||
env: | ||
# 300 seconds = 5 minutes. | ||
WALRUS_FUZZ_TIMEOUT: 300 | ||
|
||
fuzz: | ||
name: Fuzz | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
test: [watgen, wasm-opt-ttf, raw] | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install Rust | ||
run: rustup update nightly && rustup default nightly | ||
- run: cargo install cargo-fuzz | ||
- name: Install wabt | ||
run: | | ||
set -e | ||
curl -L https://github.com/WebAssembly/wabt/releases/download/1.0.12/wabt-1.0.12-linux.tar.gz | tar xzf - | ||
echo "##[add-path]`pwd`/wabt-1.0.12" | ||
- name: Install binaryen | ||
run: | | ||
set -e | ||
curl -L https://github.com/WebAssembly/binaryen/releases/download/1.39.1/binaryen-1.39.1-x86_64-linux.tar.gz | tar xzf - | ||
echo "##[add-path]`pwd`/binaryen-1.39.1" | ||
- name: Run fuzzer | ||
run: | | ||
cargo fuzz run ${{ matrix.test }} -- -max_total_time=300 -rss_limit_mb=4096 > fuzz.log 2>&1 || (tail -n 1000 fuzz.log && exit 1) | ||
rustfmt: | ||
name: Rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install Rust | ||
run: rustup update stable && rustup default stable && rustup component add rustfmt | ||
- run: cargo fmt -- --check |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.