CI: Minor update, workaround actions/runner-images#9491 #168
Workflow file for this run
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: 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: | |
matrix: | |
cc: [gcc, clang] | |
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 && apt upgrade -y | |
sudo apt install -y meson $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 |