Skip to content

Commit 2b74018

Browse files
committed
remove cache
Signed-off-by: Anas Nashif <[email protected]>
1 parent bc14ce2 commit 2b74018

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

.github/workflows/codechecker.yml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,31 +84,38 @@ jobs:
8484
gcc --version
8585
ls -la
8686
87-
- name: Set up ccache
88-
run: |
89-
mkdir -p ${CCACHE_DIR}
90-
ccache -M 10G
91-
ccache -p
92-
ccache -z -s -vv
93-
9487
- name: Run Tests with Twister
9588
id: twister
9689
run: |
9790
export ZEPHYR_BASE=${PWD}
9891
export ZEPHYR_TOOLCHAIN_VARIANT=llvm
92+
export ZEPHYR_SCA_VARIANT=codechecker
93+
export CODECHECKER_CONFIG_FILE=$ZEPHYR_BASE/.codechecker.yml
94+
export CODECHECKER_CLEANUP=y
95+
export CODECHECKER_EXPORT=sarif
9996
pip install codechecker==v6.25.1
97+
pip install cppcheck
98+
#pip install clang-tidy
10099
101100
west build -b native_sim samples/synchronization -- -DZEPHYR_SCA_VARIANT=codechecker -DCODECHECKER_EXPORT=sarif
102101
103-
- name: Upload SARIF file
104-
uses: github/codeql-action/upload-sarif@v3
105-
with:
106-
# Path to SARIF file relative to the root of the repository
107-
sarif_file: build/sca/codechecker/codechecker.sarif
108-
category: codechecker
109-
110-
- name: Print ccache stats
102+
- name: Merge sarif files
111103
if: always()
112104
run: |
113-
ccache -s -vv
105+
pip install sarif-tools
106+
sarif copy --output results.sarif $(find build -name "codechecker.sarif")
107+
- name: Upload SARIF as artifact
108+
if: always()
109+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
110+
with:
111+
name: sarif
112+
if-no-files-found: ignore
113+
path: |
114+
build/sca/codechecker/codechecker.sarif
115+
results.sarif
114116
117+
- name: Upload Analysis Results
118+
if: always()
119+
uses: github/codeql-action/upload-sarif@v3
120+
with:
121+
sarif_file: build/sca/codechecker/codechecker.sarif

0 commit comments

Comments
 (0)