Skip to content

Commit 806dda9

Browse files
authored
Build riscv64 binary in CI (#471)
* Build riscv64 binary in CI * use debian:trixie for building riscv64 binary Multi-arch is apparently broken on ubuntu noble, even for armhf and arm64. Debian Trixie is unstable and more recent than noble, but it works for now.
1 parent b3175c2 commit 806dda9

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
name: Build
1919
runs-on: ubuntu-latest
2020
container:
21-
image: debian:bullseye
21+
image: ${{ matrix.container }}
2222
env:
2323
DEBIAN_FRONTEND: noninteractive
2424
strategy:
@@ -27,21 +27,30 @@ jobs:
2727
- arm-linux-gnueabihf
2828
- aarch64-linux-gnu
2929
- x86_64-linux-gnu
30+
- riscv64-linux-gnu
3031
buildtype:
3132
- debug
3233
- release
3334
include:
3435
- target: 'x86_64-linux-gnu'
3536
is-cross: false
3637
debian-arch: 'amd64'
38+
container: 'debian:bullseye'
3739

3840
- target: 'aarch64-linux-gnu'
3941
is-cross: true
4042
debian-arch: 'arm64'
43+
container: 'debian:bullseye'
4144

4245
- target: 'arm-linux-gnueabihf'
4346
is-cross: true
4447
debian-arch: 'armhf'
48+
container: 'debian:bullseye'
49+
50+
- target: 'riscv64-linux-gnu'
51+
is-cross: true
52+
debian-arch: 'riscv64'
53+
container: 'debian:trixie'
4554

4655
steps:
4756
- name: Add debian multiarch
@@ -55,7 +64,7 @@ jobs:
5564
ARCH: ${{ matrix.debian-arch }}
5665
run: |
5766
apt-get update && apt-get install -y \
58-
git cmake ninja-build clang lld \
67+
git cmake ninja-build clang lld xz-utils \
5968
libdrm-dev:$ARCH libgbm-dev:$ARCH libsystemd-dev:$ARCH libinput-dev:$ARCH libudev-dev:$ARCH libxkbcommon-dev:$ARCH \
6069
libgstreamer-plugins-base1.0-dev:$ARCH \
6170
libvulkan-dev:$ARCH \

0 commit comments

Comments
 (0)