summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/c-cpp.yml53
1 files changed, 51 insertions, 2 deletions
diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml
index 131ed82..17978a6 100644
--- a/.github/workflows/c-cpp.yml
+++ b/.github/workflows/c-cpp.yml
@@ -8,14 +8,63 @@ on:
jobs:
build:
-
- runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ config:
+ - {
+ os: ubuntu-24.04,
+ cc: "gcc-10",
+ cxx: "g++-10",
+ deps: "gcc-10 g++-10"
+ }
+ - {
+ os: ubuntu-24.04,
+ cc: "gcc-11",
+ cxx: "g++-11",
+ deps: "gcc-11 g++-11"
+ }
+ - {
+ os: ubuntu-24.04,
+ cc: "gcc-12",
+ cxx: "g++-12",
+ deps: "gcc-12 g++-12"
+ }
+ - {
+ os: ubuntu-24.04,
+ cc: "gcc-13",
+ cxx: "g++-13",
+ deps: "gcc-13 g++-13"
+ }
+ - {
+ os: ubuntu-24.04,
+ cc: "clang-16",
+ cxx: "clang++-16",
+ deps: "clang-16"
+ }
+ - {
+ os: ubuntu-24.04,
+ cc: "clang-17",
+ cxx: "clang++-17",
+ deps: "clang-17"
+ }
+ - {
+ os: ubuntu-24.04,
+ cc: "clang-18",
+ cxx: "clang++-18",
+ deps: "clang-18"
+ }
+ runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v3
+ - name: install compiler
+ run: sudo apt install ${{ matrix.config.deps }}
- name: install deps
run: sudo apt install -y meson ninja-build libdrm-dev libegl1-mesa-dev libgles2-mesa-dev libwayland-dev libx11-xcb-dev libx11-dev libgbm-dev libevdev-dev libfmt-dev
- name: configure
+ env:
+ CC: ${{ matrix.config.cc }}
+ CXX: ${{ matrix.config.cxx }}
run: meson setup -Dkmscube=true -Dpykms=enabled -Dwerror=true -Db_lto=true build
- name: build
run: ninja -v -C build