Initial HIP support #225
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: x86-simde | |
on: | |
push: | |
branches: | |
- 'master' | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
dockcross-x86-simde-avx512: | |
name: ${{ matrix.name }}-x86-simde-avx512 | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
include: | |
- name: linux-x64 | |
- name: linux-x64-clang | |
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 'export SIMDE_INSTALL_PREFIX=${PWD}/install && export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${SIMDE_INSTALL_PREFIX}/lib/x86_64-linux-gnu/pkgconfig" && sudo apt update && sudo apt-get install -y ninja-build python3-pip pkg-config && pip3 install meson==0.55.0 --break-system-packages && bash scripts/install_simde.sh && mkdir -p build/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake -DNMTOOLS_BUILD_SIMDE_TESTS=ON -DNMTOOLS_SIMDE_TEST_ALL=ON -DNMTOOLS_TEST_ALL=OFF ../.. && make -j2 numeric-tests-simde-doctest VERBOSE=1' | |
- name: run tests | |
run: | | |
./dockcross-${{ matrix.name }} bash -c 'build/${{ matrix.name }}/tests/simde/numeric-tests-simde-doctest' |