Adding Prerequisites to README #6
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: Native Builds | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
CMAKE_BUILD_PARALLEL_LEVEL: 3 | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
jobs: | |
native-linux: | |
name: Native Linux | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Dependencies | |
run: | | |
sudo apt-get install -y linux-headers-$(uname -r) libssl-dev nlohmann-json3-dev doctest-dev | |
- name: Create CMake Cache | |
run: | | |
cmake -B build -DTESTING=ON | |
- name: Build | |
run: | | |
cmake --build build | |
- name: Test | |
run: | | |
cmake --build build --target test | |
native-macos: | |
name: Native MacOs | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Dependencies | |
run: | | |
brew install nlohmann-json doctest | |
- name: Create CMake Cache | |
run: | | |
cmake -B build -DTESTING=ON | |
- name: Build | |
run: | | |
cmake --build build | |
- name: Test | |
run: | | |
cmake --build build --target test |