Feature/tidy up #96
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: CMake | |
on: [push, pull_request] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
strategy: | |
matrix: | |
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners | |
include: | |
- name: "Ubuntu 20.04" | |
runner: ubuntu-20.04 | |
- name: "Ubuntu 22.04" | |
runner: ubuntu-22.04 | |
- name: "macOS 11" | |
runner: macos-11 | |
- name: "macOS 12" | |
runner: macos-12 | |
- name: "macOS 13" | |
runner: macos-13 | |
runs-on: ${{ matrix.runner }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure CMake | |
# Use a bash shell, so we can use the same syntax for environment variable | |
# access regardless of the host operating system | |
shell: bash | |
# Note the current convention is to use the -S and -B options here to specify source | |
# and build directories, but this is only available with CMake 3.13 and higher. | |
# The CMake binaries on the GitHub Actions machines are (as of this writing) 3.12 | |
run: cmake . -DCMAKE_BUILD_TYPE=${BUILD_TYPE} | |
- name: Build | |
shell: bash | |
# Execute the build | |
run: make | |
- name: Test | |
shell: bash | |
# Execute tests | |
run: make test | |
integration-test: | |
needs: build | |
strategy: | |
matrix: | |
include: | |
- name: "Timewarrior [stable]" | |
container: "timew-libshared-stable" | |
- name: "Timewarrior [develop]" | |
container: "timew-libshared-develop" | |
- name: "Taskwarrior [stable]" | |
container: "task-libshared-stable" | |
- name: "Taskwarrior [develop]" | |
container: "task-libshared-develop" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Test on ${{ matrix.name }}" | |
run: docker-compose up ${{ matrix.container }} |