1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: add windows and macos jobs for checking the wasm backend too (#17451)

This commit is contained in:
Delyan Angelov
2023-03-01 21:53:03 +02:00
committed by GitHub
parent cdc0159c6e
commit e2daa84a33
3 changed files with 69 additions and 30 deletions

View File

@@ -72,24 +72,48 @@ jobs:
- name: Build examples
run: VTEST_ONLY=wasm ./v build-examples
## wasm-backend-macos:
## runs-on: macOS-12
## if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
## timeout-minutes: 121
## steps:
## - uses: actions/checkout@v3
##
## - name: Build V
## run: make -j4 && ./v symlink -githubci
##
## - name: Install binaryen as build dependency for the V WASM backend
## run: ./v cmd/tools/install_binaryen.vsh
##
## - name: Build the V WASM backend
## run: ./v -cc clang -showcc -v cmd/tools/builders/wasm_builder.v
##
## - name: Test the WASM backend
## run: ./v test vlib/v/gen/wasm/tests/
##
## - name: Build examples
## run: VTEST_ONLY=wasm ./v build-examples
wasm-backend-macos:
runs-on: macOS-12
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121
steps:
- uses: actions/checkout@v3
- name: Build V
run: make -j4 && ./v symlink -githubci
- name: Install binaryen as build dependency for the V WASM backend
run: ./v cmd/tools/install_binaryen.vsh
- name: Build the V WASM backend
run: ./v -cc clang -showcc -v cmd/tools/builders/wasm_builder.v
- name: Test the WASM backend
run: ./v test vlib/v/gen/wasm/tests/
- name: Build examples
run: VTEST_ONLY=wasm ./v build-examples
wasm-backend-windows:
runs-on: windows-2022
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121
steps:
- uses: actions/checkout@v3
- name: Build V
run: .\make.bat -msvc
- name: Symlink V
run: .\v.exe symlink -githubci
- name: Install binaryen as build dependency for the V WASM backend
run: v cmd/tools/install_binaryen.vsh
- name: Build the V WASM backend
run: v -cc msvc -showcc -v cmd/tools/builders/wasm_builder.v
- name: Test the WASM backend
run: v -stats test vlib/v/gen/wasm/tests/
- name: Build examples
run: $env:VTEST_ONLY='wasm'; v build-examples