-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix x86 sse include for wasm simd * fix cmake for wasm simd * add wasm simd ci * try to fix ci * try to fix ci * try to fix ci * try to fix ci * try to fix ci
- Loading branch information
Showing
4 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: web-wasm-simd | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
dockcross-wasm-simd: | ||
name: ${{ matrix.name }}-eval | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
include: | ||
- name: web-wasm-latest | ||
image: web-wasm | ||
tag: latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup dockcross | ||
run: docker run --rm dockcross/${{ matrix.image }}:${{ matrix.tag }} > ./dockcross-${{ matrix.name }}; chmod +x ./dockcross-${{ matrix.name }} | ||
- name: setup doctest | ||
run: bash scripts/download_doctest_header.sh -d include/ | ||
- name: build | ||
run: | | ||
./dockcross-${{ matrix.name }} bash -c "emcc -v" | ||
./dockcross-${{ matrix.name }} bash -c "mkdir -p build/web-wasm-simd/ && cd build/web-wasm-simd && cmake -DNMTOOLS_TEST_ALL=OFF -DNMTOOLS_BUILD_SIMD_TESTS=ON -DNMTOOLS_SIMD_TEST_ALL=OFF -DNMTOOLS_SIMD_TEST_SSE=ON ../.. && make -j1 numeric-tests-simd-doctest VERBOSE=1" | ||
- name: run tests | ||
run: | | ||
./dockcross-${{ matrix.name }} node --version | ||
ls build/web-wasm-simd/tests/simd | ||
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - | ||
sudo apt update && sudo apt install nodejs | ||
node --version | ||
# ./dockcross-${{ matrix.name }} node --experimental-wasm-simd build/web-wasm-simd/tests/simd/numeric-tests-simd-doctest.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters