Skip to content

Commit

Permalink
Build a non-release version of wabt on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed May 5, 2020
1 parent e9e16b3 commit cea530c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/main.yml
Expand Up @@ -14,11 +14,22 @@ jobs:
submodules: true
- name: Install Rust
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- name: Install wabt

# Build an up-to-date version of wabt since the releases don't always have
# all the features we want.
- uses: actions/checkout@v2
with:
repository: WebAssembly/wabt
ref: 9068d3927b404ce1e9c600473255a90504034eee
path: wabt
- name: Build wabt
run: |
set -e
curl -L https://github.com/WebAssembly/wabt/releases/download/1.0.14/wabt-1.0.14-linux.tar.gz | tar xzf -
echo "##[add-path]`pwd`/wabt-1.0.14"
cd wabt
cmake . -DBUILD_TESTS=OFF
make -j$(nproc) wast2json spectest-interp wasm-interp
echo ::add-path::`pwd`
- name: Install binaryen
run: |
set -e
Expand All @@ -40,8 +51,8 @@ jobs:
- name: Install wabt
run: |
set -e
curl -L https://github.com/WebAssembly/wabt/releases/download/1.0.14/wabt-1.0.14-linux.tar.gz | tar xzf -
echo "##[add-path]`pwd`/wabt-1.0.14"
curl -L https://github.com/WebAssembly/wabt/releases/download/1.0.13/wabt-1.0.13-linux.tar.gz | tar xzf -
echo "##[add-path]`pwd`/wabt-1.0.13"
- name: Install binaryen
run: |
set -e
Expand All @@ -67,8 +78,8 @@ jobs:
- name: Install wabt
run: |
set -e
curl -L https://github.com/WebAssembly/wabt/releases/download/1.0.14/wabt-1.0.14-linux.tar.gz | tar xzf -
echo "##[add-path]`pwd`/wabt-1.0.14"
curl -L https://github.com/WebAssembly/wabt/releases/download/1.0.13/wabt-1.0.13-linux.tar.gz | tar xzf -
echo "##[add-path]`pwd`/wabt-1.0.13"
- name: Install binaryen
run: |
set -e
Expand Down
3 changes: 0 additions & 3 deletions Cargo.toml
Expand Up @@ -45,6 +45,3 @@ members = [
"./crates/tests",
"./crates/tests-utils",
]

[patch.crates-io]
wasmparser = { path= "../wasmparser.rs" }

0 comments on commit cea530c

Please sign in to comment.