mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: add test jobs for the wasm module, for macos, linux and windows (#17972)
This commit is contained in:
73
.github/workflows/wasm_wabt_tests_ci.yml
vendored
Normal file
73
.github/workflows/wasm_wabt_tests_ci.yml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
name: wasm wabt validate tests CI
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '!**'
|
||||
- '!**.md'
|
||||
- 'vlib/builtin/**.v'
|
||||
- 'vlib/wasm/**.v'
|
||||
- 'vlib/wasm/tests/**.v'
|
||||
pull_request:
|
||||
paths:
|
||||
- '!**'
|
||||
- '!**.md'
|
||||
- 'vlib/builtin/**.v'
|
||||
- 'vlib/wasm/**.v'
|
||||
- 'vlib/wasm/tests/**.v'
|
||||
|
||||
concurrency:
|
||||
group: wasm-wabt-ci-${{ github.event.pull_request.number || github.sha }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
wasm-wabt-ubuntu:
|
||||
runs-on: ubuntu-22.04
|
||||
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
|
||||
timeout-minutes: 31
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Build V
|
||||
run: make && ./v symlink -githubci
|
||||
|
||||
- name: Install wabt to get the wasm-validate executable
|
||||
run: v cmd/tools/install_wabt.vsh
|
||||
|
||||
- name: Test the WASM backend
|
||||
run: v test vlib/wasm/
|
||||
|
||||
wasm-wabt-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: 31
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Build V
|
||||
run: make && ./v symlink -githubci
|
||||
|
||||
- name: Install wabt to get the wasm-validate executable
|
||||
run: v cmd/tools/install_wabt.vsh
|
||||
|
||||
- name: Test the WASM backend
|
||||
run: v test vlib/wasm/
|
||||
|
||||
wasm-wabt-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: 31
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Build V
|
||||
run: .\make.bat -msvc
|
||||
|
||||
- name: Symlink V
|
||||
run: .\v.exe symlink -githubci
|
||||
|
||||
- name: Install wabt to get the wasm-validate executable
|
||||
run: v cmd/tools/install_wabt.vsh
|
||||
|
||||
- name: Test the WASM backend
|
||||
run: v test vlib/wasm/
|
||||
Reference in New Issue
Block a user