Skip to content

Commit

Permalink
chore: develop debug build (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoparente authored Jan 20, 2025
1 parent 4383287 commit 85284ea
Showing 1 changed file with 15 additions and 37 deletions.
52 changes: 15 additions & 37 deletions .github/workflows/build_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
uses: actions/cache@v4
with:
path: ${{github.workspace}}/build/p/
key: conan-${{ runner.os }}-${{ hashFiles('conanfile.py', '*/conanfile.py') }}
restore-keys: conan-${{ runner.os }}-
key: conan-${{ runner.os }}-amd64-${{ hashFiles('conanfile.py', '*/conanfile.py') }}
restore-keys: conan-${{ runner.os }}-amd64-

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

- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
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

- name: Get VERSION
id: build
run: echo "VERSION=`cat ${{github.workspace}}/build/VERSION`" >> $GITHUB_ENV

- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --config Debug -- -j 4

- name: move files
shell: bash
run: |
cp -rf ${{github.workspace}}/build/bin/pktvisord ${{github.workspace}}/pktvisord
strip -s ${{github.workspace}}/build/bin/crashpad_handler
cp -rf ${{github.workspace}}/build/bin/crashpad_handler ${{github.workspace}}/crashpad_handler
cp -rf ${{github.workspace}}/build/bin/pktvisor-reader ${{github.workspace}}/pktvisor-reader
cp -rf ${{github.workspace}}/golang/pkg/client/version.go ${{github.workspace}}/version.go
cp -rf ${{github.workspace}}/src/tests/fixtures/pktvisor-port-service-names.csv ${{github.workspace}}/custom-iana.csv
- name: Push symbols to bugsplat
shell: bash
run: |
wget https://github.com/orb-community/CrashpadTools/raw/main/linux/dump_syms
chmod a+x ./dump_syms
wget https://github.com/orb-community/CrashpadTools/raw/main/linux/symupload
chmod a+x ./symupload
./dump_syms ${{github.workspace}}/pktvisord > pktvisor.sym
./symupload -k ${{secrets.BUGSPLAT_KEY}} pktvisor.sym ${{secrets.BUGSPLAT_SYMBOL_URL}}${{env.VERSION}} 2>/dev/null
- name: Build pktvisord + push symbol to backtrace.io
uses: ./.github/actions/build-cpp
with:
context: "."
build_type: "Debug"
asan: "ON"
bugsplat_key: ${{secrets.BUGSPLAT_KEY}}
bugsplat_symbol_url: ${{secrets.BUGSPLAT_SYMBOL_URL}}
bugsplat: "true"
file: "./Dockerfile"
arch: "amd64"

- name: Build pktvisor-cli
uses: ./.github/actions/build-go
Expand Down

0 comments on commit 85284ea

Please sign in to comment.