Skip to content

Commit

Permalink
ci,tools: remove skips for the wasm backend, since binaryen is not re…
Browse files Browse the repository at this point in the history
…quired anymore (#19883)
  • Loading branch information
spytheman committed Nov 15, 2023
1 parent f2ef89a commit c838226
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 42 deletions.
40 changes: 12 additions & 28 deletions .github/workflows/wasm_backend_tests_ci.yml
Expand Up @@ -52,27 +52,20 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install --quiet -y clang gcc
- name: Build V
run: make -j4 && ./v symlink -githubci
run: make && ./v symlink -githubci

- name: Build examples
run: VTEST_ONLY=wasm ./v build-examples

- name: Install wasmer to execute WASM modules
run: |
curl https://get.wasmer.io -sSfL | sh
sudo ln -s ~/.wasmer/bin/wasmer /usr/local/bin
- 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/
run: ./v -stats test vlib/v/gen/wasm/tests/

- name: Build examples
run: VTEST_ONLY=wasm ./v build-examples

wasm-backend-macos:
runs-on: macOS-12
Expand All @@ -82,21 +75,18 @@ jobs:
- uses: actions/checkout@v3

- name: Build V
run: make -j4 && ./v symlink -githubci
run: make && ./v symlink -githubci

- name: Build examples
run: VTEST_ONLY=wasm ./v build-examples

- name: Install wasmer to execute WASM modules
run: |
curl https://get.wasmer.io -sSfL | sh
sudo ln -s ~/.wasmer/bin/wasmer /usr/local/bin
- 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
run: ./v -stats test vlib/v/gen/wasm/tests/

# wasm-backend-windows:
# runs-on: windows-2022
Expand All @@ -110,14 +100,8 @@ jobs:
# - 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: Build examples
# run: $env:VTEST_ONLY='wasm'; v build-examples
#
# - 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
10 changes: 0 additions & 10 deletions cmd/tools/modules/testing/common.v
Expand Up @@ -276,16 +276,6 @@ pub fn new_test_session(_vargs string, will_compile bool) TestSession {
}
// examples/wasm/mandelbrot/mandelbrot.v requires special compilation flags: `-b wasm -os browser`, skip it for now:
skip_files << 'examples/wasm/mandelbrot/mandelbrot.v'

// TODO: always build the wasm_builder in the future, not just when it was build manually before:
wasm_builder_executable := $if !windows {
'cmd/tools/builders/wasm_builder'
} $else {
'cmd/tools/builders/wasm_builder.exe'
}
if !os.exists(wasm_builder_executable) {
skip_files << os.join_path('cmd/tools/builders/wasm_builder.v')
}
}
vargs := _vargs.replace('-progress', '')
vexe := pref.vexe_path()
Expand Down
4 changes: 0 additions & 4 deletions cmd/tools/vtest-self.v
Expand Up @@ -354,10 +354,6 @@ fn main() {
}
}

if !os.exists('cmd/tools/builders/wasm_builder') {
tsession.skip_files << 'vlib/v/gen/wasm/tests/wasm_test.v'
}

mut werror := false
mut sanitize_memory := false
mut sanitize_address := false
Expand Down

0 comments on commit c838226

Please sign in to comment.