Skip to content

Implement ability to change model from the 3D Geometry Preview View (set Construction, ThermalZone, reverse Vertices) #1197

Implement ability to change model from the 3D Geometry Preview View (set Construction, ThermalZone, reverse Vertices)

Implement ability to change model from the 3D Geometry Preview View (set Construction, ThermalZone, reverse Vertices) #1197

Workflow file for this run

name: cppcheck
on:
push:
branches: [ master ]
pull_request:
branches: [ master, develop ]
env:
CPPCHECK_VERSION: 2.9
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install cppcheck
shell: bash
run: |
# Current stable (2.3-25-20201207-23616-ga9f4a14c8, rev 1637) is broken, so use edge for now
# cppcheck has been removed completely from snap actually
# sudo snap install cppcheck --edge
mkdir cppcheck
cd cppcheck
wget https://github.com/danmar/cppcheck/archive/$CPPCHECK_VERSION.tar.gz
tar xfz $CPPCHECK_VERSION.tar.gz
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ../cppcheck-$CPPCHECK_VERSION/
make -j $(nproc)
sudo make install
- name: Run cppcheck
shell: bash
run: |
cppcheck \
--std=c++20 \
--suppress=useStlAlgorithm \
--inline-suppr \
--inconclusive \
--enable=all \
--library=qt \
--template='[{file}:{line}]:({severity}),[{id}],{message}' \
--force -q -j $(nproc) \
-i ./src/qtwinmigrate \
./src 2>&1 | tee cppcheck.txt
- name: Parse and colorize cppcheck
shell: bash
run: python ./ci/colorize_cppcheck_results.py
- name: Upload cppcheck results as artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: OpenStudioApplication-${{ github.sha }}-cppcheck_results.txt
path: cppcheck.txt