Skip to content

Commit

Permalink
Move release builds to its own target
Browse files Browse the repository at this point in the history
Its crashing on Github currently
  • Loading branch information
akoshelev committed Oct 13, 2023
1 parent 06ad93a commit 6f358ba
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 6f358ba

Please sign in to comment.