Project overhaul, C++23. #281
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-push | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
format-check: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: update-alternatives | |
run: sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-18 100 | |
- name: format code | |
run: scripts/format_code.sh | |
- name: check diff | |
run: .github/format_check_diff.sh | |
build-linux: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: init | |
run: | | |
sudo apt update -yqq && sudo apt install -yqq ninja-build xorg-dev | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 100 | |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 100 | |
- name: configure gcc | |
run: cmake -S . --preset=default -B build -DLEVK_USE_FREETYPE=OFF -DCAPO_USE_OPENAL=OFF | |
- name: configure clang | |
run: cmake -S . --preset=ninja-clang -B clang -DLEVK_USE_FREETYPE=OFF -DCAPO_USE_OPENAL=OFF | |
- name: build gcc | |
run: cmake --build build --config=Release -- -d explain | |
- 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@v4 | |
- name: configure | |
run: cmake -S . --preset=vs22 -B build -DLEVK_USE_FREETYPE=OFF -DCAPO_USE_OPENAL=OFF | |
- name: build | |
run: cmake --build build --config=Release | |
- name: test | |
run: cd build && ctest -C Release |