Skip to content

Commit f6a5a32

Browse files
author
Aye Min Aung
committed
try removing cd
1 parent 0da0158 commit f6a5a32

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

Diff for: .github/workflows/ci.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,22 @@ jobs:
1919
uses: actions/checkout@v3
2020
- run: pwd
2121
- id: scan_build
22-
run: /__w/libks/libks/scan_build.sh
22+
run: ./scan_build.sh
2323
- name: Tar logs
2424
id: tar
2525
if: failure()
2626
env:
2727
COMPILATION_FAILED: ${{ steps.scan_build.outputs.COMPILATION_FAILED }}
2828
BUGS_FOUND: ${{ steps.scan_build.outputs.BUGS_FOUND }}
2929
run: |
30-
cd /__w/libks/libks
3130
ls -l
3231
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;
3433
echo "ARTIFACT_PATH=/__w/libks/libks/scan-build-result.tar.gz" >> $GITHUB_OUTPUT;
3534
echo "ARTIFACT=scan-build-result" >> $GITHUB_OUTPUT;
3635
fi
3736
if [ "true" -eq $BUGS_FOUND ]; then
38-
tar czvf /__w/libks/reports.tar.gz $REPORT;
37+
tar czvf reports.tar.gz $REPORT;
3938
echo "ARTIFACT_PATH=/__w/libks/libks/reports.tar.gz" >> $GITHUB_OUTPUT;
4039
echo "ARTIFACT=reports" >> $GITHUB_OUTPUT;
4140
fi
@@ -64,7 +63,7 @@ jobs:
6463
uses: actions/checkout@v3
6564
- name: run tests
6665
id: tests
67-
run: /__w/libks/libks/run_tests.sh
66+
run: ./run_tests.sh
6867
- name: Upload artifacts
6968
if: failure()
7069
uses: actions/upload-artifact@v3

Diff for: run_tests.sh

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
cd /__w/libks/libks
32
apt-get update && apt-get install -yq build-essential autotools-dev lsb-release pkg-config automake autoconf libtool-bin clang-tools-7
43
apt-get install -yq cmake uuid-dev libssl-dev colorized-logs
54
sed -i '/cotire/d' ./CMakeLists.txt

Diff for: scan_build.sh

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
cd /__w/libks/libks
32
sed -i '/cotire/d' ./CMakeLists.txt
43
mkdir -p scan-build
54
scan-build-7 -o ./scan-build/ cmake .

0 commit comments

Comments
 (0)