3.26.0-0codspeed4 #43
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: Release | |
| on: | |
| release: | |
| types: created | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-package: | |
| strategy: | |
| matrix: | |
| runner: | |
| - architecture: amd64 | |
| platform: ubuntu-22.04 | |
| ubuntu-version: 22.04 | |
| - architecture: amd64 | |
| platform: ubuntu-24.04 | |
| ubuntu-version: 24.04 | |
| - architecture: arm64 | |
| platform: codspeedhq-arm64-ubuntu-22.04 | |
| ubuntu-version: 22.04 | |
| - architecture: arm64 | |
| platform: codspeedhq-arm64-ubuntu-24.04 | |
| ubuntu-version: 24.04 | |
| runs-on: ${{ matrix.runner.platform }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: Update apt-get cache | |
| run: sudo apt-get update | |
| - name: Install packaging deps | |
| run: sudo apt-get install -y build-essential devscripts debhelper dh-make | |
| - name: Install build deps | |
| run: sudo apt-get install -y debhelper-compat gdb mpi-default-dev pkgconf cmake docbook docbook-xsl docbook-xml xsltproc | |
| - name: Configure GPG Key | |
| run: echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import | |
| env: | |
| GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} | |
| # debian/rules forwards $CAPSTONE_DIR to configure via --with-capstone. | |
| - name: Build Capstone (cycle-estimation decoder) | |
| uses: ./.github/actions/build-capstone | |
| - name: Build the deb package | |
| id: build_deb | |
| run: | | |
| debuild -e CAPSTONE_DIR --no-tgz-check -nc | |
| echo "asset-path=$(find .. -name 'valgrind_*.deb')" >> "$GITHUB_OUTPUT" | |
| env: | |
| DEBEMAIL: ${{ vars.MAINTAINER_EMAIL }} | |
| - name: Upload release artifact | |
| if: github.event_name == 'release' | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_content_type: application/vnd.debian.binary-package | |
| asset_path: ${{ steps.build_deb.outputs.asset-path }} | |
| asset_name: valgrind_${{ github.event.release.name }}_ubuntu-${{ matrix.runner.ubuntu-version }}_${{ matrix.runner.architecture }}.deb |