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 5360172
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions .github/workflows/main.yml
Expand Up @@ -14,11 +14,28 @@ 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
cmake --build .
shell: bash
- name: Add wabt to path (unix)
run: echo ::add-path::`pwd`/wabt
if: matrix.os != 'windows-latest'
- name: Add wabt to path (windows)
run: echo ::add-path::D:/a/walrus/walrus/wabt
if: matrix.os == 'windows-latest'

- name: Install binaryen
run: |
set -e
Expand All @@ -40,8 +57,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 +84,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

0 comments on commit 5360172

Please sign in to comment.