Removed all passing tests from known_failures.yaml, fixed some failin… #13
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
# Workflow syntax: | |
# https://help.github.com/en/articles/workflow-syntax-for-github-actions | |
name: cpp-linter | |
on: | |
push: | |
paths-ignore: "docs/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
cpp-linter: | |
runs-on: ubuntu-latest | |
container: | |
image: pveleskopglc/chipstar:cpp-linter | |
options: --user chipStarUser | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Run C/C++ Linter | |
run: | | |
ml StdEnv | |
. /home/chipStarUser/venv/bin/activate | |
touch `pwd`/include/chipStarConfig.hh | |
export CPATH=`pwd`/include/:$CPATH | |
export CPATH=`pwd`/HIP/include/:$CPATH | |
export CPATH=`pwd`/spirv-extractor/SPIRV-Tools/include/:$CPATH | |
echo "CPATH=$CPATH" >> $GITHUB_ENV | |
echo "$CPATH" | |
echo "$LD_LIBRARY_PATH" | |
echo "$LIBRARY_PATH" | |
echo "$PATH" | |
cpp-linter \ | |
--style="file" \ | |
--extensions=cc,hh \ | |
--tidy-checks="-*,readability-*,modernize-*,clang-analyzer-*" \ | |
--repo-root=. \ | |
--version=15 \ | |
--verbosity=info \ | |
--lines-changed-only="true" \ | |
--files-changed-only="true" \ | |
--thread-comments="false" \ | |
--no-lgtm=true \ | |
--step-summary="false" \ | |
--ignore=".github" \ | |
--database= \ | |
--file-annotations=true \ | |
--extra-arg="-std=c++17" \ | |
--tidy-review="false" \ | |
--format-review="false" | |
if [ $? -ne 0 ]; then | |
exit 1 | |
fi | |
shell: bash |