Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

fix(ci): configure Ubuntu ports for RISC-V dependencies

bherbrucke5ef451214fc
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 9ec9b0fc61..5324df5353 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -172,7 +172,7 @@ jobs:
linux-riscv64:
name: Linux riscv64
needs: version
- runs-on: ubuntu-latest
+ runs-on: ubuntu-24.04
env:
SOLVECRAFT_VERSION: ${{ needs.version.outputs.version }}
SOLVECRAFT_BUILD_DATE: ${{ needs.version.outputs.date }}
@@ -189,6 +189,17 @@ jobs:
targets: riscv64gc-unknown-linux-gnu
- name: Install cross-compilation dependencies
run: |
+ # Ubuntu's regular archive serves amd64; RISC-V packages live in ports.
+ # The 24.04 runner uses deb822 sources, so scope every Ubuntu stanza.
+ sudo sed -i '/^Architectures:/d; /^Types:/a Architectures: amd64' /etc/apt/sources.list.d/ubuntu.sources
+ sudo tee /etc/apt/sources.list.d/riscv64.sources >/dev/null <<'EOF'
+ Types: deb
+ URIs: http://ports.ubuntu.com/ubuntu-ports
+ Suites: noble noble-updates noble-backports noble-security
+ Components: main restricted universe multiverse
+ Architectures: riscv64
+ Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
+ EOF
sudo dpkg --add-architecture riscv64
sudo apt-get update
sudo apt-get install -y gcc-riscv64-linux-gnu libasound2-dev:riscv64 libxkbcommon-dev:riscv64 \