add cmake options for easier configuration #13
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: "NCL Build Actions" | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'README.md' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout submodule | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
ssh-key: ${{ secrets.ACCESS_SSH_KEY }} | |
- name: Install deps | |
run: ./install-deps.sh | |
- run: sudo apt install libibverbs-dev ninja-build -y | |
- run: sudo cp src/csl.h /usr/include/ | |
- run: cmake -S . -B build -G Ninja | |
- run: cmake --build build | |
- name: Test | |
run: ctest --test-dir ./build |