Skip to content

Commit 3ab0b27

Browse files
committed
chore: add arm64 builds
1 parent 6172d7b commit 3ab0b27

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,28 @@ jobs:
99
build-package:
1010
strategy:
1111
matrix:
12-
os:
13-
- ubuntu-20.04
14-
- ubuntu-22.04
15-
runs-on: ${{ matrix.os }}
12+
runner:
13+
- architecture: amd64
14+
platform: ubuntu-20.04
15+
ubuntu-version: 20.04
16+
additional-deps: gcc-multilib libc6-dev-i386
17+
- architecture: amd64
18+
platform: ubuntu-22.04
19+
ubuntu-version: 22.04
20+
additional-deps: gcc-multilib libc6-dev-i386
21+
- architechure: arm64
22+
platform: buildjet-2vcpu-ubuntu-2204-arm
23+
ubuntu-version: 22.04
24+
25+
runs-on: ${{ matrix.runner.platform }}
1626
steps:
1727
- uses: actions/checkout@v3
1828
- name: Update apt-get cache
1929
run: sudo apt-get update
2030
- name: Install packaging deps
2131
run: sudo apt-get install -y build-essential devscripts debhelper dh-make
2232
- name: Install build deps
23-
run: sudo apt-get install -y debhelper-compat gdb gcc-multilib libc6-dev-i386 mpi-default-dev pkg-config docbook docbook-xsl docbook-xml xsltproc
33+
run: sudo apt-get install -y debhelper-compat gdb mpi-default-dev pkg-config docbook docbook-xsl docbook-xml xsltproc ${{ matrix.runner.additional-deps }}
2434
- name: Configure GPG Key
2535
run: echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import
2636
env:
@@ -32,12 +42,14 @@ jobs:
3242
echo "asset-path=$(find .. -name 'valgrind_*.deb')" >> "$GITHUB_OUTPUT"
3343
env:
3444
DEBEMAIL: ${{ vars.MAINTAINER_EMAIL }}
45+
3546
- name: Upload release artifact
47+
if: github.event_name == 'release'
3648
uses: actions/upload-release-asset@v1
3749
env:
3850
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3951
with:
4052
upload_url: ${{ github.event.release.upload_url }}
4153
asset_content_type: application/vnd.debian.binary-package
4254
asset_path: ${{ steps.build_deb.outputs.asset-path }}
43-
asset_name: valgrind_${{ github.event.release.name }}_${{ matrix.os }}_amd64.deb
55+
asset_name: valgrind_${{ github.event.release.name }}_ubuntu-${{ matrix.runner.ubuntu-version }}_${{ matrix.runner.architechure }}.deb

0 commit comments

Comments
 (0)