From 9d69d93f14a6b6d842c77578f823fcea1fa0ecb4 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sun, 11 Aug 2024 18:56:46 +0900 Subject: [PATCH] CI: build on windows as the majority of toywasm-lib-core is plain C, it should build for windows. --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fbc4abb7..ea5d88cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,26 @@ concurrency: 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 -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 + build: env: CC: ${{matrix.compiler}}