Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/publish-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
- rust-target: aarch64-unknown-linux-gnu
os: ubuntu-latest
cross: true
- rust-target: riscv64gc-unknown-linux-gnu
os: ubuntu-latest
cross: true
- rust-target: x86_64-apple-darwin
os: macos-latest
- rust-target: aarch64-apple-darwin
Expand Down Expand Up @@ -89,6 +92,9 @@ jobs:
- rust-target: aarch64-unknown-linux-gnu
os: ubuntu-latest
cross: true
- rust-target: riscv64gc-unknown-linux-gnu
os: ubuntu-latest
cross: true
- rust-target: x86_64-apple-darwin
os: macos-latest
- rust-target: aarch64-apple-darwin
Expand Down
12 changes: 12 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,15 @@ env.passthrough = [
"OPENSSL_STATIC=yes"
]
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:edge"

[target.riscv64gc-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get --assume-yes install libssl-dev:$CROSS_DEB_ARCH",
]
env.passthrough = [
"OPENSSL_LIB_DIR=/usr/lib/riscv64-linux-gnu",
"OPENSSL_INCLUDE_DIR=/usr/include/riscv64-linux-gnu/openssl",
"OPENSSL_STATIC=yes"
]
image = "ghcr.io/cross-rs/riscv64gc-unknown-linux-gnu:edge"