Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add riscv64 bindings #175

Closed
wants to merge 1 commit into from
Closed
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
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ jobs:
os: ubuntu-22.04
rust: stable
target: aarch64-unknown-linux-gnu
- task: bindings
os: ubuntu-22.04
rust: stable
target: riscv64gc-unknown-linux-gnu
# Test channels
- task: channels
os: ubuntu-22.04
Expand Down Expand Up @@ -189,20 +193,24 @@ jobs:
i686-*) SYSTEM_ARCH=i386 ;;
arm*) SYSTEM_ARCH=armhf ;;
aarch64*) SYSTEM_ARCH=arm64 ;;
riscv64*) SYSTEM_ARCH=riscv64 ;;
esac
GCC_TARGET=$(printf "${{ matrix.target }}" | sed 's/-unknown-/-/' | sed 's/arm[^-]*/arm/g')
GCC_TARGET=$(printf "${{ matrix.target }}" | sed 's/-unknown-/-/' | sed 's/arm[^-]*/arm/g' | sed 's/riscv[^-]*/riscv64/g')
ENV_TARGET=$(printf "${{ matrix.target }}" | tr '-' '_')
ENV_TARGET_UC=$(printf "${ENV_TARGET}" | tr '[[:lower:]]' '[[:upper:]]')
sudo rm -f /etc/apt/sources.list.d/*.list
case "${{ matrix.target }}" in
arm* | aarch64*)
arm* | aarch64* | riscv64*)
sudo tee /etc/apt/sources.list << EOF
deb [arch=i386,amd64] http://archive.ubuntu.com/ubuntu/ jammy main universe
deb [arch=i386,amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates main universe
deb [arch=i386,amd64] http://security.ubuntu.com/ubuntu/ jammy-security main universe
deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy main universe
deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main universe
deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-security main universe
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy main universe
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main universe
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy-security main universe
EOF
;;
esac
Expand Down
Loading