From 85284eac515416b12e3ae740828b702eb7895f69 Mon Sep 17 00:00:00 2001 From: Leonardo Parente <23251360+leoparente@users.noreply.github.com> Date: Mon, 20 Jan 2025 16:40:40 -0300 Subject: [PATCH] chore: develop debug build (#744) --- .github/workflows/build_debug.yml | 52 +++++++++---------------------- 1 file changed, 15 insertions(+), 37 deletions(-) diff --git a/.github/workflows/build_debug.yml b/.github/workflows/build_debug.yml index 8aa1ea851..b09c77a4e 100644 --- a/.github/workflows/build_debug.yml +++ b/.github/workflows/build_debug.yml @@ -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: | @@ -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