From 56168f5a3fe4ce45292e2f12fc3a4925f22af634 Mon Sep 17 00:00:00 2001 From: Kevin Trogant Date: Mon, 15 Jul 2024 17:13:49 +0200 Subject: [PATCH] Ensure that cmake and clang are installed --- .gitea/workflows/ci_meson.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci_meson.yaml b/.gitea/workflows/ci_meson.yaml index 3015d30..dcc13d5 100644 --- a/.gitea/workflows/ci_meson.yaml +++ b/.gitea/workflows/ci_meson.yaml @@ -17,12 +17,13 @@ on: jobs: build: - name: Build on ${{ matrix.os }} with Meson v${{ matrix.meson_version }} + name: Build on ${{ matrix.os }} with Meson v${{ matrix.meson_version }} and ${{ matrix.comp }} runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04, ubuntu-18.04] + os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04] meson_version: ["1.4.0"] + comp: [gcc, clang] steps: - name: Checkout Code uses: https://gitea.com/ScMi1/checkout@v1 @@ -31,11 +32,13 @@ jobs: with: python-version: '3.x' - name: Install Dependencies - run: python -m pip install meson==${{ matrix.meson_version }} ninja + run: | + python -m pip install meson==${{ matrix.meson_version }} ninja + apt-install -y cmake clang build-essential - name: Configure Project run: meson setup build env: - CC: gcc + CC: ${{ matrix.comp }} - name: Compile run: meson compile -C build - name: Run Tests