summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrhun Parmaksız <orhunparmaksiz@gmail.com>2022-04-23 22:29:43 +0200
committerGitHub <noreply@github.com>2022-04-23 20:29:43 +0000
commita050faaf32403b7e7e14636d364522b4d5f9386d (patch)
tree90013ce1e3fdb89bb6af596344b1de05733d0596
parent8737474bf0b7105d04e1405ac8896e2c7b3899bd (diff)
Use `--locked` flag for CI builds (#337)
-rw-r--r--.github/workflows/release.yaml2
-rw-r--r--.github/workflows/rust.yml8
2 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 7298ce2e..551517b1 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 3c39fa2d..4a019f3c 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