Use RUSTFLAGS=-O to optimize builds and make regenerating state faster (#2552)

This commit is contained in:
Conrado Gouvea 2021-08-03 16:12:24 -03:00 committed by GitHub
parent fe989e0758
commit 29a658be11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ ENV SHORT_SHA $SHORT_SHA
ENV RUST_BACKTRACE full
ENV CARGO_HOME /zebra/.cargo/
# Optimize builds. In particular, regenerate-stateful-test-disks.yml was reaching the
# GitHub Actions time limit (6 hours), so we needed to make it faster.
ENV RUSTFLAGS -O
RUN rustc -V; cargo -V; rustup -V