Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .codechecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,5 @@ analyzer:
- --disable=clang-diagnostic-unused-parameter
- --disable=bugprone-narrowing-conversions

# LOG_ macros
- --disable=alpha.core.SizeofPtr
- --disable=bugprone-sizeof-expression
- --disable=performance-no-int-to-ptr

# Cleanup
- --clean
12 changes: 8 additions & 4 deletions .github/workflows/codechecker.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Codechecker
on:
pull_request:
branches:
- main
push:
branches:
- main
Expand All @@ -15,6 +18,9 @@ concurrency:
jobs:
Codechecker:
if: github.repository_owner == 'zephyrproject-rtos'
permissions:
pull-requests: write # to create/update pull request comments
security-events: write
runs-on:
group: zephyr-runner-v2-linux-x64-4xlarge
container:
Expand All @@ -27,8 +33,6 @@ jobs:
CCACHE_IGNOREOPTIONS: '-specs=* --specs=*'
LLVM_TOOLCHAIN_PATH: /usr/lib/llvm-16
BASE_REF: ${{ github.base_ref }}
permissions:
security-events: write
steps:
- name: Apply container owner mismatch workaround
run: |
Expand Down Expand Up @@ -100,13 +104,13 @@ jobs:
sudo apt-get install -y jq
export PATH=/usr/lib/llvm-16/bin/:$PATH

./scripts/twister -i --force-color -N -v --build-only --timeout-multiplier 2 -p qemu_x86 -T tests/kernel/threads -T tests/lib/heap
./scripts/twister --jobs 16 -i --force-color -N -v --build-only --timeout-multiplier 2 -p qemu_x86 -T tests/kernel/threads/thread_apis/

#sarif copy --output results.sarif $(find twister-out -name "codechecker.sarif")
jq -s '{ "$schema": "https://json.schemastore.org/sarif-2.1.0", "version": "2.1.0", "runs": map(.runs) | add }' $(find twister-out -name "codechecker.sarif") > results.sarif

- name: Upload SARIF as artifact
if: always()
if: always() && github.event_name == 'push'
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: sarif
Expand Down
Loading