Skip to content

leverage build.zig.zon to download WebAssembly testsuite (#228) #759

leverage build.zig.zon to download WebAssembly testsuite (#228)

leverage build.zig.zon to download WebAssembly testsuite (#228) #759

Workflow file for this run

name: zware tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
source-code-tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.12.0
- run: zig build unittest
testsuite:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.12.0
- name: Run testsuite
run: zig build testsuite
build_interface:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.12.0
- name: Build interface
working-directory: ./test/interface
run: zig build
build-zware-gen:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.12.0
- name: Build zware-gen
working-directory: ./tools/zware-gen
run: zig build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.12.0
- run: zig fmt --check src/*.zig
fib:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.12.0
- name: Build fib
working-directory: ./examples/fib
run: zig build