Skip to content

Commit 43d85d7

Browse files
committed
ci: add riscv64gc-unknown-linux-gnu to release binaries
Add riscv64gc-unknown-linux-gnu to both publish_dev_release and publish_tagged_release build matrices, using cross for cross-compilation. Add corresponding Cross.toml entry with OpenSSL configuration.
1 parent 40ebd82 commit 43d85d7

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/publish-binaries.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
- rust-target: aarch64-unknown-linux-gnu
3434
os: ubuntu-latest
3535
cross: true
36+
- rust-target: riscv64gc-unknown-linux-gnu
37+
os: ubuntu-latest
38+
cross: true
3639
- rust-target: x86_64-apple-darwin
3740
os: macos-latest
3841
- rust-target: aarch64-apple-darwin
@@ -89,6 +92,9 @@ jobs:
8992
- rust-target: aarch64-unknown-linux-gnu
9093
os: ubuntu-latest
9194
cross: true
95+
- rust-target: riscv64gc-unknown-linux-gnu
96+
os: ubuntu-latest
97+
cross: true
9298
- rust-target: x86_64-apple-darwin
9399
os: macos-latest
94100
- rust-target: aarch64-apple-darwin

Cross.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,15 @@ env.passthrough = [
99
"OPENSSL_STATIC=yes"
1010
]
1111
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:edge"
12+
13+
[target.riscv64gc-unknown-linux-gnu]
14+
pre-build = [
15+
"dpkg --add-architecture $CROSS_DEB_ARCH",
16+
"apt-get update && apt-get --assume-yes install libssl-dev:$CROSS_DEB_ARCH",
17+
]
18+
env.passthrough = [
19+
"OPENSSL_LIB_DIR=/usr/lib/riscv64-linux-gnu",
20+
"OPENSSL_INCLUDE_DIR=/usr/include/riscv64-linux-gnu/openssl",
21+
"OPENSSL_STATIC=yes"
22+
]
23+
image = "ghcr.io/cross-rs/riscv64gc-unknown-linux-gnu:edge"

0 commit comments

Comments
 (0)