Use --locked flag for CI builds (#337)

This commit is contained in:
Orhun Parmaksız 2022-04-23 22:29:43 +02:00 committed by GitHub
parent 8737474bf0
commit a050faaf32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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