chore(deps): update peter-evans/create-pull-request action to v7.0.7 #39
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: Build and Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
prepare: | |
name: Prepare list of configurations | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
outputs: | |
presets: ${{ steps.set-matrix.outputs.presets }} | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
github.com:443 | |
- name: Check out the source code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set matrix | |
id: set-matrix | |
run: echo presets="$(jq '.configurePresets[] | select(.hidden == false) | {name, description}' CMakePresets.json | jq --slurp -c .)" >> "${GITHUB_OUTPUT}" | |
build: | |
needs: prepare | |
name: Build and Test (${{ matrix.preset.description }}) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
preset: ${{ fromJson(needs.prepare.outputs.presets) }} | |
permissions: | |
contents: read | |
steps: | |
- name: Check out code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Install dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Set up vcpkg | |
uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5 | |
- name: Build and test | |
run: | | |
cmake --preset ${{ matrix.preset.name }} -DBUILD_BENCHMARKS=OFF | |
cmake --build --preset ${{ matrix.preset.name }} -j $(nproc) | |
ctest --preset ${{ matrix.preset.name }} | |
smoke-test: | |
name: Smoke Test | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Check out code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Install dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Set up vcpkg | |
uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5 | |
- name: Build and install | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_BENCHMARKS=OFF | |
cmake --build build -j $(nproc) | |
sudo cmake --install build | |
- name: Run smoke test | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=Release | |
cmake --build build -j $(nproc) | |
cmake --build build --target smoke-test | |
working-directory: ci | |
benchmark: | |
name: Benchmark | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Check out code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Install dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Set up vcpkg | |
uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5 | |
- name: Build | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=Release | |
cmake --build build -j $(nproc) | |
- name: Run benchmark | |
run: | | |
cmake --build build --target benchmark |