Skip to content

Bump step-security/harden-runner from 2.10.1 to 2.10.2 #78

Bump step-security/harden-runner from 2.10.1 to 2.10.2

Bump step-security/harden-runner from 2.10.1 to 2.10.2 #78

Workflow file for this run

name: ci-linux
on:
push:
tags-ignore:
- v*.*
branches:
- '*'
pull_request:
branches:
- '*'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
compiler: [ninja-gcc, ninja-clang, ninja-clang-libcpp]
cxx_version: [17, 20]
target: [Debug, Release]
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Cache CMake build files
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: build
key: ${{ runner.os }}-cmake-${{ matrix.compiler }}-${{ matrix.cxx_version }}-${{ matrix.target }}
restore-keys: |
${{ runner.os }}-cmake-${{ matrix.compiler }}-${{ matrix.cxx_version }}-
${{ runner.os }}-cmake-${{ matrix.compiler }}-
- name: install dependencies
run: sudo apt install -yqq ninja-build
- name: configure cmake
run: cmake -S . --preset=${{matrix.compiler}} -B build -DCMAKE_CXX_STANDARD=${{matrix.cxx_version}}
- name: build
run: cmake --build build --config=${{matrix.target}}
test:
runs-on: ubuntu-22.04
needs: build
strategy:
fail-fast: false
matrix:
compiler: [ninja-gcc, ninja-clang, ninja-clang-libcpp]
cxx_version: [17, 20]
target: [Debug, Release]
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Cache CMake build files
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: build
key: ${{ runner.os }}-cmake-${{ matrix.compiler }}-${{ matrix.cxx_version }}-${{ matrix.target }}
- name: test
run: cd build && ctest -C ${{matrix.target}} --output-on-failure