From 996cc81a2216eab292324efd83f13a14ea1a65f8 Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Sat, 16 Mar 2024 22:18:12 +0100 Subject: [PATCH] Use --locked when building in CI (#20) Thus the build will fail if a PR modifies Cargo.toml but forgets to include the changes in Cargo.lock --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aafc8d0e8..182f3889c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable - name: Run Tests - run: cargo build --features servo + run: cargo build --locked --features servo env: RUST_BACKTRACE: 1 @@ -30,7 +30,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable - name: Run Tests - run: cargo build --release --features servo + run: cargo build --locked --release --features servo env: RUST_BACKTRACE: 1