diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 9910d285..68cc766a 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -22,16 +22,11 @@ jobs: with: deno-version: v1.x - - name: Install wabt - run: | - set -e - curl -L https://github.com/WebAssembly/wabt/releases/download/1.0.13/wabt-1.0.13-linux.tar.gz | tar xzf - - echo "`pwd`/wabt-1.0.13" > $GITHUB_PATH - - 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 "`pwd`/binaryen-1.39.1" > $GITHUB_PATH + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true - name: Install wasm-bindgen run: cargo install wasm-bindgen-cli @@ -39,5 +34,8 @@ jobs: - name: Add wasm target run: rustup target add wasm32-unknown-unknown + - name: Pin wasm-bindgen version + run: cargo update -p wasm-bindgen --precise 0.2.95 + - name: Run tests run: ./scripts/deno_test.sh diff --git a/scripts/deno_bench.sh b/scripts/deno_bench.sh index 12f0933d..324ba956 100755 --- a/scripts/deno_bench.sh +++ b/scripts/deno_bench.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash deno bench --unstable --allow-read \ No newline at end of file diff --git a/scripts/deno_test.sh b/scripts/deno_test.sh index 106a9301..aabfc1f6 100755 --- a/scripts/deno_test.sh +++ b/scripts/deno_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail