fix(deb): drop 32-bit build-deps to match 64-bit-only build #195
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| jobs: | |
| test-callgrind: | |
| strategy: | |
| matrix: | |
| runner: | |
| - platform: ubuntu-22.04 | |
| ubuntu-version: 22.04 | |
| - platform: ubuntu-24.04 | |
| ubuntu-version: 24.04 | |
| runs-on: ${{ matrix.runner.platform }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| # Skip installing package docs to avoid wasting time when installing valgrind | |
| # See: https://github.com/actions/runner-images/issues/10977#issuecomment-2810713336 | |
| - name: Skip installing package docs | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo tee /etc/dpkg/dpkg.cfg.d/01_nodoc > /dev/null << 'EOF' | |
| path-exclude /usr/share/doc/* | |
| path-exclude /usr/share/man/* | |
| path-exclude /usr/share/info/* | |
| EOF | |
| - name: Update apt-get cache | |
| run: sudo apt-get update | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt-get install -y \ | |
| build-essential \ | |
| automake \ | |
| autoconf \ | |
| cmake \ | |
| libc6-dev \ | |
| gdb \ | |
| docbook \ | |
| docbook-xsl \ | |
| docbook-xml \ | |
| xsltproc | |
| - name: Build Capstone (cycle-estimation decoder) | |
| uses: ./.github/actions/build-capstone | |
| - name: Run autogen | |
| run: ./autogen.sh | |
| # CodSpeed only runs the 64-bit tool, and cycle estimation needs a | |
| # 64-bit Capstone, so skip the 32-bit secondary build entirely. This | |
| # halves build time and avoids compiling cycledecode.c without Capstone. | |
| - name: Configure | |
| run: ./configure --enable-only64bit | |
| - name: Build Valgrind | |
| run: make -j$(nproc) | |
| - name: Build test dependencies | |
| run: | | |
| make -C tests arch_test os_test true | |
| make -C callgrind/tests check | |
| - name: Run Callgrind tests | |
| run: | | |
| cd callgrind/tests | |
| TESTS=$(ls *.vgtest | grep -v bug497723.vgtest) | |
| perl ../../tests/vg_regtest --valgrind=../../vg-in-place $TESTS | |
| - name: Upload test logs | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: callgrind-test-logs-${{ matrix.runner.ubuntu-version }} | |
| path: callgrind/tests/*.log |