From b673f91a4627f2b4d50fbb52be83b2047d8ce1f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dario=20Vladovi=C4=87?= Date: Wed, 21 Apr 2021 17:21:18 +0200 Subject: fix(build): respect the lockfile (#2614) --- .github/workflows/deploy.yml | 2 +- .github/workflows/workflow.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6e151b981..e5b365609 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -128,7 +128,7 @@ jobs: SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk with: command: build - args: --release --features tls-vendored --target ${{ matrix.target }} + args: --release --locked --features tls-vendored --target ${{ matrix.target }} use-cross: ${{ matrix.os == 'ubuntu-latest' }} - name: Post Build | Prepare artifacts [Windows] diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index e5fdba4e5..945ea1764 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -70,7 +70,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: clippy - args: --all-targets --all-features -- -D clippy::all + args: --workspace --locked --all-targets --all-features -- -D clippy::all # Ensure that the project could be successfully compiled cargo_check: @@ -98,7 +98,7 @@ jobs: override: true - name: Build | Check - run: cargo check --all + run: cargo check --workspace --locked # Run tests on Linux, macOS, and Windows # On both Rust stable and Rust nightly @@ -144,4 +144,4 @@ jobs: # Run the ignored tests that expect the above setup - name: Build | Test - run: cargo test --all-features -- -Z unstable-options --include-ignored + run: cargo test --workspace --locked --all-features -- -Z unstable-options --include-ignored -- cgit v1.2.3