Skip to content

test cmake integration #4

test cmake integration

test cmake integration #4

Workflow file for this run

name: Cmake integration
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -l {0}
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout xsimd
uses: actions/checkout@v3
- name: Configure build
run: |
mkdir _build && cd _build
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=_install
-G Ninja
- name: Build
run: ninja -C _build install
- name: Check install
run: |
mkdir _install_build && cd _install_build
cp ${{ github.workspace }}/.github/cmake-test/* .
cmake . -DCMAKE_PREFIX_PATH=../_build/install/lib64/cmake/xsimd