Skip to content

klib v0.1.2

klib v0.1.2 #24

Workflow file for this run

name: ci-push
on: [push]
jobs:
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 gcc-14 xorg-dev libwayland-dev libxkbcommon-dev wayland-protocols extra-cmake-modules
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
- name: configure clang
run: cmake -S . --preset=ninja-clang -B clang
- name: build gcc debug
run: cmake --build build --config=Debug
- name: build gcc release
run: cmake --build build --config=Release
- name: build clang debug
run: cmake --build clang --config=Debug
- name: build clang release
run: cmake --build clang --config=Release
- name: test gcc debug
run: cd build && ctest -C Debug
- name: test gcc release
run: cd build && ctest -C Release
- name: test clang debug
run: cd clang && ctest -C Debug
- name: test clang release
run: cd clang && ctest -C Release
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: configure
run: cmake -S . --preset=vs22 -B build
- name: build debug
run: cmake --build build --config=Debug
- name: build release
run: cmake --build build --config=Release
- name: test debug
run: cd build && ctest -C Debug
- name: test release
run: cd build && ctest -C Release