Skip to content

Commit

Permalink
fix(rust): timeout issue due to cargo-audit (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez authored Oct 18, 2023
1 parent 9d677a3 commit ab8d2cd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion rust-nostd-avr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RUN cargo --version
RUN rustup show

# Install extra crates
RUN cargo install cargo-audit cargo-generate
RUN cargo install cargo-audit@0.17.6 cargo-generate

# Generate project templates
RUN cargo generate -a Rahix/avr-hal-template --name rust-project-uno --vcs none --silent -d board="Arduino Uno"
Expand Down
2 changes: 1 addition & 1 deletion rust-nostd-avr/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ fi

cargo audit
cargo build --release --out-dir output -Z unstable-options
avr-objcopy -R .eeprom -O ihex ./target/${MCU}/release/${PROJECT_NAME}.elf ${HOME}/build-out/project.hex
avr-objcopy -R .eeprom -O ihex ./target/${MCU}/release/${PROJECT_NAME}.elf ${HOME}/build-out/project.hex
cp ./target/${MCU}/release/${PROJECT_NAME}.elf ${HOME}/build-out/project.elf
4 changes: 2 additions & 2 deletions rust-nostd-esp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM espressif/idf-rust:all_1.72.0.0
FROM espressif/idf-rust:all_1.73.0.0

USER esp
ENV USER=esp

# Install extra crates
RUN cargo install cargo-audit && \
RUN cargo install cargo-audit@0.17.6 && \
GENERATE_VERSION=$(git ls-remote --refs --sort="version:refname" --tags "https://github.com/cargo-generate/cargo-generate" | cut -d/ -f3- | tail -n1) && \
curl -L "https://github.com/cargo-generate/cargo-generate/releases/latest/download/cargo-generate-${GENERATE_VERSION}-x86_64-unknown-linux-gnu.tar.gz" -o "${HOME}/.cargo/bin/cargo-generate.tar.gz" && \
tar xf "${HOME}/.cargo/bin/cargo-generate.tar.gz" -C ${HOME}/.cargo/bin && \
Expand Down
4 changes: 2 additions & 2 deletions rust-std-esp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM espressif/idf-rust:all_1.72.0.0
FROM espressif/idf-rust:all_1.73.0.0

USER esp
ENV USER=esp

# Install extra crates
RUN cargo install cargo-audit && \
RUN cargo install cargo-audit@0.17.6 && \
GENERATE_VERSION=$(git ls-remote --refs --sort="version:refname" --tags "https://github.com/cargo-generate/cargo-generate" | cut -d/ -f3- | tail -n1) && \
curl -L "https://github.com/cargo-generate/cargo-generate/releases/latest/download/cargo-generate-${GENERATE_VERSION}-x86_64-unknown-linux-gnu.tar.gz" -o "${HOME}/.cargo/bin/cargo-generate.tar.gz" && \
tar xf "${HOME}/.cargo/bin/cargo-generate.tar.gz" -C ${HOME}/.cargo/bin && \
Expand Down

0 comments on commit ab8d2cd

Please sign in to comment.