Set tpie::tempname
before calling tpie_init()
#1119
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: static analysis | |
on: [pull_request] | |
jobs: | |
include-guards: | |
name: Check include guards | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Check adiar.h | |
uses: sbeyer/[email protected] | |
with: | |
path: src/adiar | |
pattern: '{file}' | |
only: 'adiar\.h' | |
- name: Check other files in src/adiar files | |
uses: sbeyer/[email protected] | |
with: | |
path: src | |
pattern: '{dirs}_{file}' | |
ignore: 'adiar/adiar\.h' | |
cppcheck: | |
name: 'Cppcheck' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: 'Run Cppcheck' | |
uses: deep5050/cppcheck-action@main | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
enable: warning,performance,portability,information | |
force_language: c++ | |
max_ctu_depth: 4 | |
std: c++17 | |
output_file: ./cppcheck_report.txt | |
other_options: --suppress=missingInclude | |
- name: 'Print cppcheck_report.txt' | |
run: cat ./cppcheck_report.txt | |
- name: 'Filter cppcheck_report.txt (fail if non-empty)' | |
run: sudo python3 .github/workflows/cppcheck.py ./cppcheck_report.txt | |
- name: 'Post cppcheck_report.txt on PR (if failed)' | |
if: failure() | |
uses: mshick/add-pr-comment@main | |
with: | |
message-path: ./cppcheck_report.txt | |
message-id: 'cppcheck' | |
clang-format-checking: | |
name: 'Clang Format' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: RafikFarhad/clang-format-github-action@v4 | |
with: | |
style: "file" | |
sources: "src/**/*.h,src/**/*.cpp,test/**/*.h,test/**/*.cpp" |