File: cmake.yml

package info (click to toggle)
xsimd 14.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,144 kB
  • sloc: cpp: 41,628; sh: 541; makefile: 184; python: 117
file content (29 lines) | stat: -rw-r--r-- 851 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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-latest
    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
    - name: Build
      run: cmake --build _build --target install
    - name: Check install
      run: |
        mkdir _install_build && cd _install_build
        cp ${{ github.workspace }}/.github/cmake-test/* .
        ls $PWD/../_build/_install/share/cmake/xsimd
        cmake . -DCMAKE_PREFIX_PATH=$PWD/../_build/_install/share/cmake/xsimd
        cmake --build .