Setup library (#1) #7
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: ci | |
on: [push] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: init | |
run: sudo apt update -yqq && sudo apt install -yqq ninja-build g++-13 clang-15 | |
- name: configure gcc | |
run: cmake -S . --preset=default -B build -DCMAKE_CXX_COMPILER=g++-13 | |
- name: configure clang | |
run: cmake -S . --preset=ninja-clang -B clang -DKALCY_BUILD_TESTS=OFF -DKALCY_BUILD_EXAMPLES=OFF -DCMAKE_CXX_COMPILER=clang++-15 | |
- name: build gcc | |
run: cmake --build build --config=Release | |
- name: build clang | |
run: cmake --build clang --config=Release | |
- name: test | |
run: cd build && ctest -C Release | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: configure | |
run: cmake -S . --preset=vs22 -B build | |
- name: build | |
run: cmake --build build --config=Release | |
- name: test | |
run: cd build && ctest -C Release |