-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (37 loc) · 1.1 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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
- 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 ${{github.workspace}}/wat/fib.wasm test-all
working-directory: ${{github.workspace}}/examples/run