Skip to content

CI: Minor update, workaround actions/runner-images#9491 #171

CI: Minor update, workaround actions/runner-images#9491

CI: Minor update, workaround actions/runner-images#9491 #171

Workflow file for this run

name: C/C++ CI
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: trunk
paths:
- '**'
- '!**.md'
- '!docs/**'
- '!**.yml'
- '**/c-cpp.yml'
pull_request:
branches: trunk
paths:
- '**'
- '!**.md'
- '!docs/**'
- '!**.yml'
- '**/c-cpp.yml'
jobs:
linux:
strategy:
fail-fast: false
matrix:
cc: [gcc-10, gcc-11, clang-13, clang-14]
runs-on: ubuntu-latest
env:
CC: ${{ matrix.cc }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt remove -y firefox
sudo apt update && sudo apt upgrade -y
sudo apt install -y meson ninja-build $CC
- name: Build
run: |
meson setup _build
cd _build
ninja
- name: Test
run: cd _build && meson test -v
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- run: brew install meson
- run: |
meson setup _build
cd _build
ninja
meson test -v