Skip to content

Commit 85284ea

Browse files
authored
chore: develop debug build (#744)
1 parent 4383287 commit 85284ea

File tree

1 file changed

+15
-37
lines changed

1 file changed

+15
-37
lines changed

.github/workflows/build_debug.yml

+15-37
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
uses: actions/cache@v4
2929
with:
3030
path: ${{github.workspace}}/build/p/
31-
key: conan-${{ runner.os }}-${{ hashFiles('conanfile.py', '*/conanfile.py') }}
32-
restore-keys: conan-${{ runner.os }}-
31+
key: conan-${{ runner.os }}-amd64-${{ hashFiles('conanfile.py', '*/conanfile.py') }}
32+
restore-keys: conan-${{ runner.os }}-amd64-
3333

3434
- name: linux package install
3535
run: |
@@ -79,42 +79,20 @@ jobs:
7979
uses: actions/cache@v4
8080
with:
8181
path: ${{github.workspace}}/build/p/
82-
key: conan-${{ runner.os }}-${{ hashFiles('conanfile.py', '*/conanfile.py') }}
83-
restore-keys: conan-${{ runner.os }}-
82+
key: conan-${{ runner.os }}-amd64-${{ hashFiles('conanfile.py', '*/conanfile.py') }}
83+
restore-keys: conan-${{ runner.os }}-amd64-
8484

85-
- name: Configure CMake
86-
shell: bash
87-
working-directory: ${{github.workspace}}/build
88-
run: PKG_CONFIG_PATH=${{github.workspace}}/local/lib/pkgconfig cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=./cmake/conan_provider.cmake -DCODE_COVERAGE=ON
89-
90-
- name: Get VERSION
91-
id: build
92-
run: echo "VERSION=`cat ${{github.workspace}}/build/VERSION`" >> $GITHUB_ENV
93-
94-
- name: Build
95-
working-directory: ${{github.workspace}}/build
96-
shell: bash
97-
run: cmake --build . --config Debug -- -j 4
98-
99-
- name: move files
100-
shell: bash
101-
run: |
102-
cp -rf ${{github.workspace}}/build/bin/pktvisord ${{github.workspace}}/pktvisord
103-
strip -s ${{github.workspace}}/build/bin/crashpad_handler
104-
cp -rf ${{github.workspace}}/build/bin/crashpad_handler ${{github.workspace}}/crashpad_handler
105-
cp -rf ${{github.workspace}}/build/bin/pktvisor-reader ${{github.workspace}}/pktvisor-reader
106-
cp -rf ${{github.workspace}}/golang/pkg/client/version.go ${{github.workspace}}/version.go
107-
cp -rf ${{github.workspace}}/src/tests/fixtures/pktvisor-port-service-names.csv ${{github.workspace}}/custom-iana.csv
108-
109-
- name: Push symbols to bugsplat
110-
shell: bash
111-
run: |
112-
wget https://github.com/orb-community/CrashpadTools/raw/main/linux/dump_syms
113-
chmod a+x ./dump_syms
114-
wget https://github.com/orb-community/CrashpadTools/raw/main/linux/symupload
115-
chmod a+x ./symupload
116-
./dump_syms ${{github.workspace}}/pktvisord > pktvisor.sym
117-
./symupload -k ${{secrets.BUGSPLAT_KEY}} pktvisor.sym ${{secrets.BUGSPLAT_SYMBOL_URL}}${{env.VERSION}} 2>/dev/null
85+
- name: Build pktvisord + push symbol to backtrace.io
86+
uses: ./.github/actions/build-cpp
87+
with:
88+
context: "."
89+
build_type: "Debug"
90+
asan: "ON"
91+
bugsplat_key: ${{secrets.BUGSPLAT_KEY}}
92+
bugsplat_symbol_url: ${{secrets.BUGSPLAT_SYMBOL_URL}}
93+
bugsplat: "true"
94+
file: "./Dockerfile"
95+
arch: "amd64"
11896

11997
- name: Build pktvisor-cli
12098
uses: ./.github/actions/build-go

0 commit comments

Comments
 (0)