-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yang Kaiyong <[email protected]>
- Loading branch information
Yang Kaiyong
committed
Jan 20, 2025
1 parent
7a3a483
commit 9a1ec5d
Showing
5 changed files
with
95 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM ubuntu:latest | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
software-properties-common \ | ||
build-essential \ | ||
curl \ | ||
git \ | ||
libssl-dev \ | ||
pkg-config \ | ||
cmake \ | ||
gcc-riscv64-linux-gnu \ | ||
g++-riscv64-linux-gnu \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN add-apt-repository ppa:ubuntu-toolchain-r/test \ | ||
&& apt-get update && apt-get install -y \ | ||
gcc-14 \ | ||
g++-14 \ | ||
gcc-14-riscv64-linux-gnu \ | ||
g++-14-riscv64-linux-gnu \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /root | ||
|
||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable | ||
|
||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
RUN rustup target add \ | ||
riscv64gc-unknown-linux-gnu | ||
|
||
RUN mkdir -p ~/.cargo && echo '\ | ||
[target.riscv64gc-unknown-linux-gnu]\n\ | ||
linker = "riscv64-linux-gnu-gcc-14"' > ~/.cargo/config.toml | ||
|
||
CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[toolchain] | ||
channel = "1.84.0" | ||
channel = "stable" | ||
components = ["rustfmt", "clippy"] |