fix: Disable mouse tests if cmocka is not present #209
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: Build/Test | |
on: | |
push: | |
branches: | |
- '*' | |
- '!gh-pages' | |
paths-ignore: | |
- 'kernel_module/**' | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
if: "!(contains(github.event.head_commit.message, '[ci skip]') || contains(github.event.head_commit.message, '[skip ci]'))" | |
name: ${{ join(matrix.*, '/') }} | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ startsWith(matrix.os, 'macos-') || (matrix.os == 'ubuntu-24.04') }} | |
env: | |
CC: ${{ matrix.cc }} | |
strategy: | |
matrix: | |
os: ['ubuntu-20.04', 'ubuntu-22.04', 'ubuntu-22.04', 'macos-12', 'macos-13', 'macos-14'] | |
cc: ['gcc', 'clang'] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies (Ubuntu) | |
run: ./.github/scripts/install-dependencies-ubuntu.sh | |
if: ${{ startsWith(matrix.os, 'ubuntu-') }} | |
- name: Install dependencies (MacOS) | |
run: ./.github/scripts/install-dependencies-macos.sh | |
if: ${{ startsWith(matrix.os, 'macos-') }} | |
- name: Build and Test | |
run: ./.github/scripts/build-and-test.sh |