Update scripts to build/test VecCore with CTest #90
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: GitHub Actions | |
on: [push, pull_request] | |
env: | |
BUILD_SITE: "GitHub Actions" | |
jobs: | |
linux: | |
name: Linux | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
compiler: [ gcc, clang ] | |
target: [ sse4.2, avx2 ] | |
env: | |
CC: ${{ matrix.compiler }} | |
steps: | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 1 | |
- name: Install dependencies | |
run: | | |
set -e | |
sudo apt-get update -y | |
sudo apt-get install -y cmake pkg-config libgd-dev ${{matrix.compiler}} | |
- name: CTest Build | |
run: env CC=${CC} CXX=${CC/g*/g++} ctest -VV -S cmake/TestVecCore.cmake,${{matrix.target}} | |
macos: | |
name: MacOS | |
runs-on: macos-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
target: [ sse2, sse4.2 ] | |
steps: | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 1 | |
- name: CTest Build | |
run: ctest -VV -S cmake/TestVecCore.cmake,${{matrix.target}} | |
windows: | |
name: Windows | |
runs-on: windows-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
target: [ sse2, avx2 ] | |
steps: | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 1 | |
- name: CTest Build | |
run: ctest -VV -S cmake/TestVecCore.cmake,${{matrix.target}} |