Cleanup github actions #2040
This file contains hidden or 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: 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: cmake -B _build -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/../_install/share/cmake/xsimd | |
| cmake . -DCMAKE_PREFIX_PATH=$PWD/../_install/share/cmake/xsimd | |
| cmake --build . | |