Skip to content

Commit 3fe98a2

Browse files
committed
Stop installing recommended packages in CI
We don't need "recommended" packages to be installed in CI, but that's what apt-get chooses to do by default. Provide the --no-install-recommends option to prevent this from happening. While at it, also provide the --yes switch to make sure no user input is inquired. That should be the default when no TTY is present, but it seems best to be explicit.
1 parent 6c994e5 commit 3fe98a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2021-2024 The Nitrocli Developers
1+
# Copyright (C) 2021-2025 The Nitrocli Developers
22
# SPDX-License-Identifier: CC0-1.0
33

44
# TODO:
@@ -35,7 +35,7 @@ jobs:
3535
- uses: dtolnay/rust-toolchain@master
3636
with:
3737
toolchain: ${{ matrix.rust }}
38-
- run: sudo apt-get install libhidapi-dev
38+
- run: sudo apt-get install --yes --no-install-recommends libhidapi-dev
3939
- run: cargo build --workspace --bins --tests --verbose
4040
- run: cargo build --workspace --bins --tests --verbose --release
4141
- run: cargo test --workspace --verbose
@@ -45,7 +45,7 @@ jobs:
4545
runs-on: ubuntu-latest
4646
steps:
4747
- uses: actions/checkout@v4
48-
- run: sudo apt-get install libhidapi-dev
48+
- run: sudo apt-get install --yes --no-install-recommends libhidapi-dev
4949
- name: Install Nightly Rust
5050
uses: dtolnay/rust-toolchain@nightly
5151
- run: cargo +nightly -Z minimal-versions update

0 commit comments

Comments
 (0)