Skip to content

fix CI

fix CI #13

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
defaults:
run:
shell: bash
# Cancel any in-flight jobs for the same PR/branch so there's only one active
# at a time
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
wasmtime: [19.0.2]
wizer: [5.0.0]
wasm-tools: [1.203.0]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Rust 1.68.2
run: |
rustup toolchain install 1.68.2
rustup target add wasm32-wasi --toolchain 1.68.2
- uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- name: Install Wasmtime
run: |
curl -LO https://github.com/bytecodealliance/wasmtime/releases/download/v${{ matrix.wasmtime }}/wasmtime-v${{ matrix.wasmtime }}-x86_64-linux.tar.xz
tar xf wasmtime-v${{ matrix.wasmtime }}-x86_64-linux.tar.xz
echo `pwd`/wasmtime-v${{ matrix.wasmtime }}-x86_64-linux >> $GITHUB_PATH
- name: Install Wizer
run: |
curl -LO https://github.com/bytecodealliance/wizer/releases/download/v${{ matrix.wizer }}/wizer-v${{ matrix.wizer }}-x86_64-linux.tar.xz
tar xf wizer-v${{ matrix.wizer }}-x86_64-linux.tar.xz
echo `pwd`/wizer-v${{ matrix.wizer }}-x86_64-linux >> $GITHUB_PATH
- name: Install Wasm Tools
run: |
curl -LO https://github.com/bytecodealliance/wasm-tools/releases/download/v${{ matrix.wasm-tools }}/wasm-tools-${{ matrix.wasm-tools }}-x86_64-linux.tar.gz
tar xf wasm-tools-${{ matrix.wasm-tools }}-x86_64-linux.tar.gz
echo `pwd`/wasm-tools-${{ matrix.wasm-tools }}-x86_64-linux >> $GITHUB_PATH
- name: Build StarlingMonkey
run: |
cmake -S . -B cmake-build-debug -DCMAKE_BUILD_TYPE=Debug
cmake --build cmake-build-debug --parallel 4
- name: StarlingMonkey Integration Tests
run: |
cmake --build cmake-build-debug --target test-cases
CTEST_OUTPUT_ON_FAILURE=1 make -C cmake-build-debug test