Skip to content

Commit

Permalink
fix: tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
niebayes committed Sep 25, 2024
1 parent 437b506 commit 88f8acf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ popd
# For Rust.
echo "Building for Rust..."
pushd rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path --default-toolchain none -y
. "$HOME/.cargo/env"
if ! command -v rustc > /dev/null; then \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path --default-toolchain none -y
. "$HOME/.cargo/env"
fi
cargo build
popd

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.runner
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY . /examples
WORKDIR /examples

ENV PATH=$PATH:/usr/local/go/bin
ENV PATH=$PATH:/root/.cargo/bin
ENV PATH=$PATH:/usr/local/cargo/bin

# Download, install, and build dependencies for all languages.
RUN TZ=Asia/Shanghai DEBIAN_FRONTEND=noninteractive apt-get -y update && \
Expand Down

0 comments on commit 88f8acf

Please sign in to comment.