Skip to content

Commit c53a930

Browse files
committed
Use correct RISC-V toolchain version
Toolchain version change so hardcoded CI file failed to set the correct path.
1 parent ba32f3f commit c53a930

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ jobs:
5353
npm install --location=global xpm@latest
5454
xpm install --global @xpack-dev-tools/riscv-none-elf-gcc@latest
5555
tree -a "$HOME/.local/xPacks/@xpack-dev-tools/riscv-none-elf-gcc/" || echo "nope"
56-
echo "$HOME/.local/xPacks/@xpack-dev-tools/riscv-none-elf-gcc/14.2.0-3.1/.content/bin" >> "$GITHUB_PATH"
56+
RISCV_DIR="$(find "$HOME/.local/xPacks/@xpack-dev-tools/riscv-none-elf-gcc" -maxdepth 1 -type d -name '[0-9]*' | sort -V | tail -n 1)"
57+
if [ -d "$RISCV_DIR/.content/bin" ]; then
58+
echo "$RISCV_DIR/.content/bin" >> "$GITHUB_PATH"
59+
fi
5760
5861
###########################################
5962
# Install toolchains for ubuntu LTS

0 commit comments

Comments
 (0)