Skip to content

CI: build on windows #1152

CI: build on windows

CI: build on windows #1152

Workflow file for this run

name: CI
on:
push:
branches: [ "master" ]
tags:
- "v*"
pull_request:
branches: [ "master" ]
concurrency:
group: cmake-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: cmake configure
run: |
cmake -B build -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/dist -DBUILD_TESTING=OFF -DTOYWASM_BUILD_CLI=OFF -DTOYWASM_BUILD_UNITTEST=OFF -DTOYWASM_ENABLE_WASI=OFF -DTOYWASM_ENABLE_TRACING=ON -DTOYWASM_ENABLE_TRACING_INSN=ON
- name: cmake -L
run: |
cmake -B build -L
- name: Build
run: cmake --build build
- name: Install
run: cmake --build build --target install
- name: Build examples/run
run: |
cmake -B build -DCMAKE_PREFIX_PATH=${{github.workspace}}/dist
cmake --build build
working-directory: ${{github.workspace}}/examples/run
- name: Run examples/run
run: |
.\build\Debug\run.exe ./wasm/fib.wasm test-all
working-directory: ${{github.workspace}}/examples/run