Skip to content

Commit

Permalink
ci: Add riscv64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Skallwar committed May 13, 2022
1 parent 1f5e53f commit 1b47539
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ case "$1" in
target_linker="aarch64-linux-gnu-gcc"
target_cc="aarch64-linux-gnu-gcc"

;;
riscv64*)
arch="riscv64"
sysroot="/usr/lib/riscv64-linux-gnu/"
ubuntu_cross_pkg_list="gcc-riscv64-linux-gnu"
# YES they are the same but otherwise it fails
target_linker="riscv64-linux-gnu-gcc"
target_cc="riscv64-linux-gnu-gcc"

;;
x86_64*)
target_linker="gcc"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
target:
- x86_64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
- riscv64gc-unknown-linux-gnu
rust:
- stable
- 1.51.0
Expand Down

0 comments on commit 1b47539

Please sign in to comment.