update cmake #167
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: Checks | |
on: [pull_request] | |
jobs: | |
checks: | |
name: Run black-desk/checks | |
permissions: | |
checks: write | |
contents: read | |
issues: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: black-desk/checks@master | |
build-and-test: | |
name: Build and tests | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
container: | |
- debian:oldstable-slim | |
- debian:stable-slim | |
- debian:sid-slim | |
preset: [debug, ci, ci-with-spdlog] | |
cxx: [g++, clang++] | |
container: | |
image: ${{ matrix.container }} | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cache CPM.cmake Source | |
uses: actions/cache@v4 | |
with: | |
path: .cache/cpm/source | |
key: ${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | |
- name: Setup cmake | |
uses: jwlawson/actions-setup-cmake@v1.14 | |
- name: Install system dependencies | |
run: | | |
apt update && | |
apt install pkg-config make git g++ clang libexpected-dev libspdlog-dev nlohmann-json3-dev -y | |
- name: Build project with cmake | |
run: | | |
mkdir -p .cache/cpm/source && | |
export CXX="${{ matrix.cxx }}" && | |
export CPM_SOURCE_CACHE="$PWD/.cache/cpm/source" && | |
cmake --workflow --preset ${{ matrix.preset }} | |
pass: | |
name: Pass | |
needs: [checks, build-and-test] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Placeholder | |
run: true |