ci: use locked builds in deploy and nightly (#700)

Adds --locked to the build process for nightly and deploy workflows.
This commit is contained in:
Clement Tsang 2022-04-10 01:11:10 -04:00 committed by GitHub
parent 44e6923a5d
commit 194a769b1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View file

@ -145,7 +145,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
args: --release --verbose --target=${{ matrix.triple.target }} --features "battery"
args: --release --verbose --locked --target=${{ matrix.triple.target }} --features "battery"
use-cross: ${{ matrix.triple.cross }}
- name: Build autocompletion and manpage
@ -313,7 +313,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
args: --release --verbose --features "battery"
args: --release --locked --verbose --features "battery"
- name: Build autocompletion and manpage
shell: bash

View file

@ -141,7 +141,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
args: --release --verbose --target=${{ matrix.triple.target }} --features "battery"
args: --release --locked --verbose --target=${{ matrix.triple.target }} --features "battery"
use-cross: ${{ matrix.triple.cross }}
- name: Build autocompletion and manpage
@ -307,7 +307,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
args: --release --verbose --features "battery"
args: --release --locked --verbose --features "battery"
- name: Build autocompletion and manpage
shell: bash

View file

@ -84,10 +84,10 @@ Installation via cargo is done by installing the `bottom` crate:
# If required, update Rust on the stable channel
rustup update stable
cargo install bottom
# Alternatively, --locked may be required due to how cargo install works
cargo install bottom --locked
# Alternatively, --locked may be omitted if you wish to not used locked dependencies:
cargo install bottom
```
### Arch Linux