Skip to content

Commit 7fea993

Browse files
Fixed ci issues
1 parent 2fa62fd commit 7fea993

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

.github/workflows/dynamic_analysis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919

20-
- name: Create dynamic_analysis directory
21-
run: mkdir -p "${{ runner.workspace }}/dynamic_analysis"
22-
2320
- name: Install Build Dependencies and Valgrind
2421
run: |
2522
sudo apt-get update

.github/workflows/static_analysis.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,24 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- name: Create static_analysis directory
20-
run: mkdir -p static_analysis
21-
2219
- name: Run Cppcheck
2320
run: |
2421
sudo apt-get install -y cppcheck
25-
cppcheck --enable=all --inconclusive --force --language=c++ --file-list=<(find lwlog/src/ -name "*.cpp" -o -name "*.h") &> static_analysis/cppcheck.txt
22+
cppcheck --enable=all --inconclusive --force --language=c++ --file-list=<(find lwlog/src/ -name "*.cpp" -o -name "*.h") &> \
23+
"${{ runner.workspace }}/cppcheck.txt"
2624
continue-on-error: true
2725

2826
- name: Upload Cppcheck Results
2927
uses: actions/upload-artifact@v4
3028
with:
3129
name: cppcheck_results
32-
path: static_analysis/cppcheck.txt
30+
path: "${{ runner.workspace }}/cppcheck.txt"
3331

3432
clang-tidy:
3533
runs-on: ubuntu-latest
3634
steps:
3735
- uses: actions/checkout@v4
3836

39-
- name: Create static_analysis directory
40-
run: mkdir -p static_analysis
41-
4237
- name: Install Dependencies
4338
run: sudo apt-get install -y build-essential cmake
4439

@@ -54,14 +49,15 @@ jobs:
5449
- name: Run Clang-Tidy
5550
run: |
5651
sudo apt-get install -y clang-tidy
57-
find lwlog/src/ -name "*.cpp" -o -name "*.h" | xargs clang-tidy -p=build/compile_commands.json &> static_analysis/clang-tidy.txt
52+
find lwlog/src/ -name "*.cpp" -o -name "*.h" | xargs clang-tidy -p=build/compile_commands.json &> \
53+
"${{ runner.workspace }}/clang-tidy.txt"
5854
continue-on-error: true
5955

6056
- name: Upload Clang-Tidy Results
6157
uses: actions/upload-artifact@v4
6258
with:
6359
name: clangtidy_results
64-
path: static_analysis/clang-tidy.txt
60+
path: "${{ runner.workspace }}/clang-tidy.txt"
6561

6662
sonar-scanner:
6763
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)