Skip to content

Extract File get_toggles.{h,cpp} from prompts2.{h,cpp} #141

Extract File get_toggles.{h,cpp} from prompts2.{h,cpp}

Extract File get_toggles.{h,cpp} from prompts2.{h,cpp} #141

Workflow file for this run

name: CMake
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ] # macos-latest is disabled for now
runs-on: ${{matrix.os}}
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
steps:
- name: Checkout
uses: actions/[email protected]
with:
submodules: true
- name: Set Environment Variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Run Workflow
run: cmake --workflow --preset default
cppcheck:
name: cppcheck
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/[email protected]
with:
submodules: true
- name: Configure Compilation Database
run: cmake --preset cppcheck
- name: Run CppCheck
uses: deep5050/[email protected]
with:
github_token: ${{secrets.GITHUB_TOKEN}}
enable: 'style'
force: 'enable'
other_options: >-
--suppress=commaSeparatedReturn
--suppress=cstyleCast
--suppress=functionStatic
--suppress=incorrectStringBooleanError
--suppress=invalidPointerCast
--suppress=invalidscanf
--suppress=variableHidingEnum
--suppress=variableScope
--inline-suppr
-I headers hc common headers unix win32
-ifractint
-ivcpkg
-i../build-cppcheck/vcpkg_installed
- name: Print Report
run: cmake -E cat cppcheck_report.txt