From 6f358bae199d6301f4ee2448ac53a8c7746b87f4 Mon Sep 17 00:00:00 2001 From: Alex Koshelev Date: Thu, 12 Oct 2023 17:14:23 -0700 Subject: [PATCH] Move release builds to its own target Its crashing on Github currently --- .github/workflows/check.yml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index cbeb08087..669c9f1f2 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -70,6 +70,37 @@ jobs: - name: Run compact gate tests run: cargo test --no-default-features --features "cli web-app real-world-infra test-fixture compact-gate" + release: + name: Release builds and tests + runs-on: ubuntu-latest + env: + RUSTFLAGS: -C target-cpu=native + steps: + - uses: actions/checkout@v3 + + - uses: dtolnay/rust-toolchain@stable + with: + components: clippy,rustfmt + + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }} + + - name: Release Build + run: cargo build --release + + - name: Build concurrency tests + run: cargo build --release --features shuttle + + - name: Run concurrency tests + run: cargo test --release --features shuttle + extra: name: Additional Builds and Concurrency Tests env: @@ -118,6 +149,7 @@ jobs: - name: Run compact gate tests run: cargo test --no-default-features --features "cli web-app real-world-infra test-fixture compact-gate" + # sanitizers currently require nightly https://github.com/rust-lang/rust/issues/39699 sanitize: runs-on: ubuntu-latest strategy: @@ -128,7 +160,6 @@ jobs: TARGET: x86_64-unknown-linux-gnu steps: - uses: actions/checkout@v3 - # https://github.com/rust-lang/rust/issues/39699 - uses: dtolnay/rust-toolchain@nightly - name: Add Rust sources run: rustup component add rust-src