From a050faaf32403b7e7e14636d364522b4d5f9386d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sat, 23 Apr 2022 22:29:43 +0200 Subject: [PATCH] Use `--locked` flag for CI builds (#337) --- .github/workflows/release.yaml | 2 +- .github/workflows/rust.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7298ce2..551517b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -66,7 +66,7 @@ jobs: with: use-cross: ${{ matrix.job.use-cross }} command: build - args: --release --target=${{ matrix.job.target }} + args: --locked --release --target=${{ matrix.job.target }} - name: Strip debug information from executable id: strip diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3c39fa2..4a019f3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -31,16 +31,16 @@ jobs: key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }} - name: Run cargo build common - run: cargo build -p atuin-common --release + run: cargo build -p atuin-common --locked --release - name: Run cargo build client - run: cargo build -p atuin-client --release + run: cargo build -p atuin-client --locked --release - name: Run cargo build server - run: cargo build -p atuin-server --release + run: cargo build -p atuin-server --locked --release - name: Run cargo build main - run: cargo build --all --release && strip target/release/atuin + run: cargo build --all --locked --release && strip target/release/atuin test: runs-on: ubuntu-latest