From dfe90a3b2bb92dbc47749574d3ab29885de5a731 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sat, 27 Apr 2024 20:36:33 -0400 Subject: [PATCH] Add a `--release` build to CI (#11182) ## Summary We merged a failure here (#11177), and it only takes ~five minutes anyway (which is shorter than some of our other jobs). --- .github/workflows/ci.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 282aff1276..3380958b0e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -194,6 +194,22 @@ jobs: cd crates/ruff_wasm wasm-pack test --node + cargo-build-release: + name: "cargo build (release)" + runs-on: macos-latest + needs: determine_changes + if: ${{ needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main' }} + timeout-minutes: 20 + steps: + - uses: actions/checkout@v4 + - name: "Install Rust toolchain" + run: rustup show + - name: "Install mold" + uses: rui314/setup-mold@v1 + - uses: Swatinem/rust-cache@v2 + - name: "Build" + run: cargo build --release --locked + cargo-fuzz: name: "cargo fuzz" runs-on: ubuntu-latest