Skip to content

Add HIP status badge (#285) #668

Add HIP status badge (#285)

Add HIP status badge (#285) #668

Workflow file for this run

name: web-wasm
on:
push:
branches:
- 'master'
tags:
- 'v*'
pull_request:
branches:
- '*'
jobs:
dockcross-wasm-eval:
name: ${{ matrix.name }}-eval
runs-on: ubuntu-20.04
strategy:
matrix:
include:
# TODO: find out minimum wasm version that works
# The following version (emcc 2.04 with clang 12) fails,
# internal compiler error:
# clang++: /b/s/w/ir/cache/builder/emscripten-releases/llvm-project/clang/lib/AST/ExprConstant.cpp:5963:
# "base class initializers not in expected order"' failed.
# https://github.com/alifahrri/nmtools/runs/4816856132?check_suite_focus=true
#
# - name: web-wasm-2020
# image: web-wasm
# tag: 20201222-0217db3
- 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 }}
- uses: actions/cache@v2
id: cache
with:
path: ./build/${{ matrix.name }}
key: ${{ github.job }}-${{ matrix.name }}-${{ hashFiles('./**') }}
- 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/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake -DNMTOOLS_TEST_ALL=OFF -DNMTOOLS_TEST_ARRAY_EVAL=ON -DNMTOOLS_TEST_ARRAY_NN_EVAL=ON ../.. && make -j2 VERBOSE=1'
- name: run tests
run: ./dockcross-${{ matrix.name }} node build/${{ matrix.name }}/tests/array/numeric-tests-doctest.js
dockcross-wasm:
name: ${{ matrix.name }}
runs-on: ubuntu-20.04
strategy:
matrix:
include:
# TODO: find out minimum wasm version that works
# The following version (emcc 2.04 with clang 12) fails,
# internal compiler error:
# clang++: /b/s/w/ir/cache/builder/emscripten-releases/llvm-project/clang/lib/AST/ExprConstant.cpp:5963:
# "base class initializers not in expected order"' failed.
# https://github.com/alifahrri/nmtools/runs/4816856132?check_suite_focus=true
#
# - name: web-wasm-2020
# image: web-wasm
# tag: 20201222-0217db3
- 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 }}
- uses: actions/cache@v2
id: cache
with:
path: ./build/${{ matrix.name }}
key: ${{ github.job }}-${{ matrix.name }}-${{ hashFiles('./**') }}
- 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/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake ../.. -DNMTOOLS_TEST_ALL=OFF -DNMTOOLS_TEST_ARRAY_VIEW=ON -DNMTOOLS_TEST_ARRAY_UFUNCS=ON -DNMTOOLS_TEST_ARRAY_VIEW_NN=ON && make -j2 VERBOSE=1'
- name: run tests
run: ./dockcross-${{ matrix.name }} node build/${{ matrix.name }}/tests/array/numeric-tests-doctest.js
dockcross-wasm-index:
# NOTE: failing on github ci because of stack size
if: ${{ false }} # TODO: fix
name: ${{ matrix.name }}-index
runs-on: ubuntu-20.04
strategy:
matrix:
include:
# TODO: find out minimum wasm version that works
# The following version (emcc 2.04 with clang 12) fails,
# internal compiler error:
# clang++: /b/s/w/ir/cache/builder/emscripten-releases/llvm-project/clang/lib/AST/ExprConstant.cpp:5963:
# "base class initializers not in expected order"' failed.
# https://github.com/alifahrri/nmtools/runs/4816856132?check_suite_focus=true
#
# - name: web-wasm-2020
# image: web-wasm
# tag: 20201222-0217db3
- 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 }}
- uses: actions/cache@v2
id: cache
with:
path: ./build/${{ matrix.name }}
key: ${{ github.job }}-${{ matrix.name }}-${{ hashFiles('./**') }}
- 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/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake ../.. -DNMTOOLS_TEST_ALL=OFF -DNMTOOLS_TEST_ARRAY_INDEX=ON && make -j2 VERBOSE=1'
- name: run tests
run: ./dockcross-${{ matrix.name }} node build/${{ matrix.name }}/tests/array/numeric-tests-doctest.js
dockcross-wasm-misc:
name: ${{ matrix.name }}-misc
runs-on: ubuntu-20.04
strategy:
matrix:
include:
# TODO: find out minimum wasm version that works
# The following version (emcc 2.04 with clang 12) fails,
# internal compiler error:
# clang++: /b/s/w/ir/cache/builder/emscripten-releases/llvm-project/clang/lib/AST/ExprConstant.cpp:5963:
# "base class initializers not in expected order"' failed.
# https://github.com/alifahrri/nmtools/runs/4816856132?check_suite_focus=true
#
# - name: web-wasm-2020
# image: web-wasm
# tag: 20201222-0217db3
- 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 }}
- uses: actions/cache@v2
id: cache
with:
path: ./build/${{ matrix.name }}
key: ${{ github.job }}-${{ matrix.name }}-${{ hashFiles('./**') }}
- 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/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake ../.. -DNMTOOLS_TEST_ALL=OFF -DNMTOOLS_TEST_NDARRAY=ON -DNMTOOLS_TEST_ARRAY_UTILITY=ON -DNMTOOLS_TEST_UTILS=ON -DNMTOOLS_TEST_NDARRAY=ON -DNMTOOLS_TEST_COMPOSITION=ON -DNMTOOLS_TEST_FUNCTIONAL=ON -DNMTOOLS_TEST_MISC=ON && make -j2 VERBOSE=1'
- name: run tests
run: ./dockcross-${{ matrix.name }} node build/${{ matrix.name }}/tests/array/numeric-tests-doctest.js
dockcross-wasm-constexpr-eval:
name: ${{ matrix.name }}-constexpr-eval
runs-on: ubuntu-20.04
strategy:
matrix:
include:
# TODO: find out minimum wasm version that works
# The following version (emcc 2.04 with clang 12) fails,
# internal compiler error:
# clang++: /b/s/w/ir/cache/builder/emscripten-releases/llvm-project/clang/lib/AST/ExprConstant.cpp:5963:
# "base class initializers not in expected order"' failed.
# https://github.com/alifahrri/nmtools/runs/4816856132?check_suite_focus=true
#
# - name: web-wasm-2020
# image: web-wasm
# tag: 20201222-0217db3
- 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 }}
- uses: actions/cache@v2
id: cache
with:
path: ./build/${{ matrix.name }}
key: ${{ github.job }}-${{ matrix.name }}-${{ hashFiles('./**') }}
- 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/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake -DNMTOOLS_BUILD_CONSTEXPR_TESTS=ON -DNMTOOLS_BUILD_META_TESTS=OFF -DNMTOOLS_BUILD_UTL_TESTS=OFF -DNMTOOLS_TEST_ALL=OFF -DNMTOOLS_TEST_ARRAY_EVAL=ON ../.. && make -j2 VERBOSE=1'
- name: run tests
run: ./dockcross-${{ matrix.name }} node build/${{ matrix.name }}/tests/array/numeric-tests-doctest.js
dockcross-wasm-constexpr-generic-ndarray-eval:
# NOTE: failing on github ci because of stack size
# Stack overflow detected. You can try increasing -sSTACK_SIZE (currently set to 65536)
# TODO: fix
if: ${{ false }}
name: ${{ matrix.name }}-constexpr-generic-ndarray-eval
runs-on: ubuntu-20.04
strategy:
matrix:
include:
# TODO: find out minimum wasm version that works
# The following version (emcc 2.04 with clang 12) fails,
# internal compiler error:
# clang++: /b/s/w/ir/cache/builder/emscripten-releases/llvm-project/clang/lib/AST/ExprConstant.cpp:5963:
# "base class initializers not in expected order"' failed.
# https://github.com/alifahrri/nmtools/runs/4816856132?check_suite_focus=true
#
# - name: web-wasm-2020
# image: web-wasm
# tag: 20201222-0217db3
- 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 }}
- uses: actions/cache@v2
id: cache
with:
path: ./build/${{ matrix.name }}
key: ${{ github.job }}-${{ matrix.name }}-${{ hashFiles('./**') }}
- 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/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake -DNMTOOLS_BUILD_CONSTEXPR_TESTS=ON -DNMTOOLS_BUILD_META_TESTS=OFF -DNMTOOLS_BUILD_UTL_TESTS=OFF -DNMTOOLS_TEST_ALL=OFF -DNMTOOLS_TEST_ARRAY_EVAL=ON -DNMTOOLS_TESTING_GENERIC_NDARRAY=ON -DNMTOOLS_TESTING_NOSTL=OFF ../.. && make -j2 VERBOSE=1'
- name: run tests
run: ./dockcross-${{ matrix.name }} node build/${{ matrix.name }}/tests/array/numeric-tests-doctest.js
dockcross-wasm-constexpr-no-stl-generic-ndarray-eval:
# NOTE: failing on github ci because of stack size
# Stack overflow detected. You can try increasing -sSTACK_SIZE (currently set to 65536)
# TODO: fix
if: ${{ false }}
name: ${{ matrix.name }}-constexpr-no-stl-generic-ndarray-eval
runs-on: ubuntu-20.04
strategy:
matrix:
include:
# TODO: find out minimum wasm version that works
# The following version (emcc 2.04 with clang 12) fails,
# internal compiler error:
# clang++: /b/s/w/ir/cache/builder/emscripten-releases/llvm-project/clang/lib/AST/ExprConstant.cpp:5963:
# "base class initializers not in expected order"' failed.
# https://github.com/alifahrri/nmtools/runs/4816856132?check_suite_focus=true
#
# - name: web-wasm-2020
# image: web-wasm
# tag: 20201222-0217db3
- 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 }}
- uses: actions/cache@v2
id: cache
with:
path: ./build/${{ matrix.name }}
key: ${{ github.job }}-${{ matrix.name }}-${{ hashFiles('./**') }}
- 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/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake -DNMTOOLS_BUILD_CONSTEXPR_TESTS=ON -DNMTOOLS_BUILD_META_TESTS=OFF -DNMTOOLS_BUILD_UTL_TESTS=OFF -DNMTOOLS_TEST_ALL=OFF -DNMTOOLS_TEST_ARRAY_EVAL=ON -DNMTOOLS_TESTING_GENERIC_NDARRAY=ON -DNMTOOLS_TESTING_NOSTL=ON ../.. && make -j2 VERBOSE=1'
- name: run tests
run: ./dockcross-${{ matrix.name }} node build/${{ matrix.name }}/tests/array/numeric-tests-doctest.js