Skip to content

Commit 44f2f47

Browse files
committed
Enable GitHub Actions to validate RISC-V targets with dynamic linking
The update workflow now downloads a RISC-V GNU toolchain to provide necessary dependencies and validate the dynamically linked compiler targeting the RISC-V architecture.
1 parent 2bc499f commit 44f2f47

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,7 @@ jobs:
99
matrix:
1010
compiler: [gcc, clang]
1111
architecture: [arm, riscv]
12-
link_mode: [static]
13-
include:
14-
- compiler: gcc
15-
architecture: arm
16-
link_mode: dynamic
17-
- compiler: clang
18-
architecture: arm
19-
link_mode: dynamic
12+
link_mode: [static, dynamic]
2013
steps:
2114
- name: Checkout code
2215
uses: actions/checkout@v4
@@ -27,6 +20,9 @@ jobs:
2720
sudo apt-get install -q -y qemu-user
2821
sudo apt-get install -q -y build-essential
2922
sudo apt-get install -q -y gcc-arm-linux-gnueabihf
23+
sudo wget -q https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2026.04.05/riscv32-glibc-ubuntu-24.04-gcc.tar.xz
24+
sudo tar Jxf riscv32-glibc-ubuntu-24.04-gcc.tar.xz -C /opt
25+
echo "/opt/riscv/bin" >> "$GITHUB_PATH"
3026
- name: Determine static or dynamic linking mode
3127
id: determine-mode
3228
run: |

0 commit comments

Comments
 (0)