|
28 | 28 | uses: actions/cache@v4
|
29 | 29 | with:
|
30 | 30 | 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- |
33 | 33 |
|
34 | 34 | - name: linux package install
|
35 | 35 | run: |
|
@@ -79,42 +79,20 @@ jobs:
|
79 | 79 | uses: actions/cache@v4
|
80 | 80 | with:
|
81 | 81 | 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- |
84 | 84 |
|
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" |
118 | 96 |
|
119 | 97 | - name: Build pktvisor-cli
|
120 | 98 | uses: ./.github/actions/build-go
|
|
0 commit comments