File tree 3 files changed +4
-7
lines changed
3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -19,23 +19,22 @@ jobs:
19
19
uses : actions/checkout@v3
20
20
- run : pwd
21
21
- id : scan_build
22
- run : /__w/libks/libks /scan_build.sh
22
+ run : . /scan_build.sh
23
23
- name : Tar logs
24
24
id : tar
25
25
if : failure()
26
26
env :
27
27
COMPILATION_FAILED : ${{ steps.scan_build.outputs.COMPILATION_FAILED }}
28
28
BUGS_FOUND : ${{ steps.scan_build.outputs.BUGS_FOUND }}
29
29
run : |
30
- cd /__w/libks/libks
31
30
ls -l
32
31
if [ "true" -eq $COMPILATION_FAILED ]; then
33
- tar czvf /__w/libks/libks/ scan-build-result.tar.gz ./scan-build-result.txt;
32
+ tar czvf scan-build-result.tar.gz ./scan-build-result.txt;
34
33
echo "ARTIFACT_PATH=/__w/libks/libks/scan-build-result.tar.gz" >> $GITHUB_OUTPUT;
35
34
echo "ARTIFACT=scan-build-result" >> $GITHUB_OUTPUT;
36
35
fi
37
36
if [ "true" -eq $BUGS_FOUND ]; then
38
- tar czvf /__w/libks/ reports.tar.gz $REPORT;
37
+ tar czvf reports.tar.gz $REPORT;
39
38
echo "ARTIFACT_PATH=/__w/libks/libks/reports.tar.gz" >> $GITHUB_OUTPUT;
40
39
echo "ARTIFACT=reports" >> $GITHUB_OUTPUT;
41
40
fi
64
63
uses : actions/checkout@v3
65
64
- name : run tests
66
65
id : tests
67
- run : /__w/libks/libks /run_tests.sh
66
+ run : . /run_tests.sh
68
67
- name : Upload artifacts
69
68
if : failure()
70
69
uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- cd /__w/libks/libks
3
2
apt-get update && apt-get install -yq build-essential autotools-dev lsb-release pkg-config automake autoconf libtool-bin clang-tools-7
4
3
apt-get install -yq cmake uuid-dev libssl-dev colorized-logs
5
4
sed -i ' /cotire/d' ./CMakeLists.txt
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- cd /__w/libks/libks
3
2
sed -i ' /cotire/d' ./CMakeLists.txt
4
3
mkdir -p scan-build
5
4
scan-build-7 -o ./scan-build/ cmake .
You can’t perform that action at this time.
0 commit comments