Skip to content

Bump github/codeql-action from 3.25.9 to 3.25.10 #496

Bump github/codeql-action from 3.25.9 to 3.25.10

Bump github/codeql-action from 3.25.9 to 3.25.10 #496

Workflow file for this run

name: CodeCov
on:
push:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
codecov:
name: Build
runs-on: ubuntu-latest
env:
BUILD_DIR: build_codecov
GCC_VERSION: 12
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: 'True'
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake lcov ninja-build
- name: Configure Build
run: |
mkdir "$BUILD_DIR"
cmake \
-G Ninja \
-S . \
-B "$BUILD_DIR" \
-D COVERAGE=Yes \
-D CMAKE_C_COMPILER="gcc-$GCC_VERSION" \
-D CMAKE_CXX_COMPILER="g++-$GCC_VERSION"
- name: Build
run: |
cmake --build "$BUILD_DIR"
- name: Collect the Coverage
run: |
set -x
lcov \
--capture \
--output-file coverage.info \
--directory "$BUILD_DIR" \
--gcov-tool "gcov-$GCC_VERSION" \
--include "$(pwd)/*.?pp"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4.4.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}