Implement CI with GHA #12
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: Test | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- master | |
jobs: | |
cc: | |
# Expect this to fail when next Ubuntu version promoted | |
strategy: | |
matrix: | |
cc: | |
- gcc-9 | |
- gcc-10 | |
- gcc-11 | |
- gcc-12 | |
- clang-11 | |
- clang-13 | |
- clang-14 | |
- clang-15 | |
os: [ 'ubuntu-latest' ] | |
runs-on: "${{ matrix.os }}" | |
name: "Build on ${{ matrix.os }} with ${{ matrix.cc }}" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Install ${{ matrix.cc }}" | |
run: dpkg-query -W "${{ matrix.cc }}" >/dev/null 2>&1 || sudo apt-get install -qq "${{ matrix.cc }}" | |
- name: Build | |
env: | |
CC: ${{ matrix.cc }} | |
CXX: ${{ matrix.cc }} | |
run: | | |
./autogen.sh \ | |
--enable-textui \ | |
--enable-delay=2 \ | |
--enable-evdev-rate=1000,250 \ | |
; | |
make |