refactor: Tweak perf_build script (#2121)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/24376/head
Andrew Lamb 2021-07-28 09:47:18 -04:00 committed by GitHub
parent 754d647c06
commit a1fbac74d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -241,16 +241,19 @@ jobs:
# Disable incremental compilation to avoid overhead. We are not preserving these files anyway.
CARGO_INCREMENTAL: "0"
# We keep the debug symbols (Enabled in Cargo.toml as debug = true)
# workaround dynamic CPU detection bug in croaring
# https://github.com/influxdata/influxdb_iox/pull/2119
ROARING_ARCH: "haswell"
steps:
- checkout
- rust_components
- cache_restore
- run:
name: Print rustc target CPU options
command: cargo build --release --features="aws,gcp,azure" --bin print_cpu
command: cargo run --release --features="aws,gcp,azure" --bin print_cpu
- run:
name: Cargo release build with target arch set for CRoaring
command: ROARING_ARCH=haswell cargo build --release --features="aws,gcp,azure"
command: cargo build --release --features="aws,gcp,azure"
- run: |
echo sha256sum after build is
sha256sum target/release/influxdb_iox