Re-enable C++ for OpenCL #460
Workflow file for this run
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
name: gcc | |
on: | |
push: | |
branches: | |
- 'master' | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
dockcross-gcc: | |
name: ${{ matrix.name }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
include: | |
- name: linux-x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup dockcross | |
run: docker run --rm dockcross/${{ matrix.name }} > ./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 | |
# use single thread to minimize memory usage, Process completed with exit code 137. | |
run: ./dockcross-${{ matrix.name }} bash -c 'mkdir -p build/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake ../.. && make -j2 VERBOSE=1' | |
- name: run tests | |
run: | | |
./dockcross-${{ matrix.name }} bash -c 'build/${{ matrix.name }}/tests/array/numeric-tests-doctest' | |
./dockcross-${{ matrix.name }} bash -c 'build/${{ matrix.name }}/tests/meta/numeric-tests-doctest-meta' | |
./dockcross-${{ matrix.name }} bash -c 'build/${{ matrix.name }}/tests/utl/meta/numeric-tests-utl-meta' | |
./dockcross-${{ matrix.name }} bash -c 'build/${{ matrix.name }}/tests/utl/array/numeric-tests-utl-array' | |
./dockcross-${{ matrix.name }} bash -c 'build/${{ matrix.name }}/tests/utl/utl/numeric-tests-utl' | |
# separate job to avoid OOM | |
dockcross-gcc-generic-ndarray-view: | |
name: ${{ matrix.name }}-generic-ndarray-view | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
include: | |
- name: linux-x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup dockcross | |
run: docker run --rm dockcross/${{ matrix.name }} > ./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 | |
# use single thread to minimize memory usage, Process completed with exit code 137. | |
run: ./dockcross-${{ matrix.name }} bash -c 'mkdir -p build/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake -DNMTOOLS_TESTING_GENERIC_NDARRAY=ON -DNMTOOLS_BUILD_VIEW_TESTS=ON ../.. && make -j2 VERBOSE=1 numeric-tests-view-doctest' | |
- name: run tests | |
run: | | |
./dockcross-${{ matrix.name }} bash -c 'build/${{ matrix.name }}/tests/view/numeric-tests-view-doctest' | |
dockcross-gcc-no-stl: | |
name: ${{ matrix.name }}-no-stl | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
include: | |
- name: linux-x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup dockcross | |
run: docker run --rm dockcross/${{ matrix.name }} > ./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 | |
# use single thread to minimize memory usage, Process completed with exit code 137. | |
run: ./dockcross-${{ matrix.name }} bash -c 'mkdir -p build/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake -DNMTOOLS_BUILD_VIEW_TESTS=ON -DNMTOOLS_TESTING_NOSTL=ON ../.. && make -j2 VERBOSE=1 numeric-tests-view-doctest' | |
- name: run tests | |
run: | | |
./dockcross-${{ matrix.name }} bash -c 'build/${{ matrix.name }}/tests/view/numeric-tests-view-doctest' | |
dockcross-gcc-index: | |
name: ${{ matrix.name }}-index | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
include: | |
- name: linux-x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup dockcross | |
run: docker run --rm dockcross/${{ matrix.name }} > ./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 'mkdir -p build/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake -DCMAKE_TOOLCHAIN_FILE=${PWD}/../../cmake/toolchains/gcc-werror.cmake -DNMTOOLS_TEST_ALL=OFF -DNMTOOLS_BUILD_INDEX_TESTS=ON ../.. && make -j2 VERBOSE=1 numeric-tests-index-doctest' | |
- name: run tests | |
run: | | |
./dockcross-${{ matrix.name }} bash -c 'build/${{ matrix.name }}/tests/index/numeric-tests-index-doctest' | |
dockcross-gcc-functional: | |
name: ${{ matrix.name }}-index | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
include: | |
- name: linux-x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup dockcross | |
run: docker run --rm dockcross/${{ matrix.name }} > ./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 'mkdir -p build/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake -DCMAKE_TOOLCHAIN_FILE=${PWD}/../../cmake/toolchains/gcc-werror.cmake -DNMTOOLS_TEST_ALL=OFF -DNMTOOLS_BUILD_FUNCTIONAL_TESTS=ON ../.. && make -j2 VERBOSE=1 numeric-tests-functional-doctest' | |
- name: run tests | |
run: | | |
./dockcross-${{ matrix.name }} bash -c 'build/${{ matrix.name }}/tests/functional/numeric-tests-functional-doctest' | |
dockcross-gcc-no-stl-generic-ndarray: | |
name: ${{ matrix.name }}-no-stl-generic-ndarray | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
include: | |
- name: linux-x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup dockcross | |
run: docker run --rm dockcross/${{ matrix.name }} > ./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 | |
# use single thread to minimize memory usage, Process completed with exit code 137. | |
run: ./dockcross-${{ matrix.name }} bash -c 'mkdir -p build/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake -DNMTOOLS_TESTING_GENERIC_NDARRAY=ON -DNMTOOLS_BUILD_VIEW_TESTS=ON -DNMTOOLS_TESTING_NOSTL=ON ../.. && make -j2 VERBOSE=1 numeric-tests-view-doctest' | |
- name: run tests | |
run: | | |
./dockcross-${{ matrix.name }} bash -c 'build/${{ matrix.name }}/tests/view/numeric-tests-view-doctest' | |
dockcross-gcc-no-stl-generic-ndarray-eval: | |
name: ${{ matrix.name }}-no-stl-generic-ndarray-eval | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
include: | |
- name: linux-x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup dockcross | |
run: docker run --rm dockcross/${{ matrix.name }} > ./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 'mkdir -p build/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake -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 }} bash -c 'build/${{ matrix.name }}/tests/array/numeric-tests-doctest' | |
dockcross-gcc-generic-ndarray-eval: | |
name: ${{ matrix.name }}-generic-ndarray-eval | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
include: | |
- name: linux-x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup dockcross | |
run: docker run --rm dockcross/${{ matrix.name }} > ./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 'mkdir -p build/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake -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 }} bash -c 'build/${{ matrix.name }}/tests/array/numeric-tests-doctest' | |
dockcross-gcc-constexpr-eval: | |
name: ${{ matrix.name }}-constexpr-eval | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
include: | |
- name: linux-x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup dockcross | |
run: docker run --rm dockcross/${{ matrix.name }} > ./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 'mkdir -p build/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake -DNMTOOLS_TESTING_CONSTEXPR=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 }} bash -c 'build/${{ matrix.name }}/tests/array/numeric-tests-doctest' | |
dockcross-gcc-constexpr-no-stl-generic-ndarray-eval: | |
name: ${{ matrix.name }}-constexpr-no-stl-generic-ndarray-eval | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
include: | |
- name: linux-x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup dockcross | |
run: docker run --rm dockcross/${{ matrix.name }} > ./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 'mkdir -p build/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake -DNMTOOLS_TESTING_CONSTEXPR=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 }} bash -c 'build/${{ matrix.name }}/tests/array/numeric-tests-doctest' | |
dockcross-gcc-constexpr-generic-ndarray-eval: | |
name: ${{ matrix.name }}-constexpr-generic-ndarray-eval | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
include: | |
- name: linux-x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup dockcross | |
run: docker run --rm dockcross/${{ matrix.name }} > ./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 'mkdir -p build/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake -DNMTOOLS_TESTING_CONSTEXPR=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 }} bash -c 'build/${{ matrix.name }}/tests/array/numeric-tests-doctest' |