Skip to content

Commit

Permalink
Stop installing recommended packages in CI
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Daniel Müller <[email protected]>
  • Loading branch information
d-e-s-o committed Dec 30, 2024
1 parent 92b1fe8 commit 1da7891
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
path: linux/
- if: steps.restore-cached-kernel.outputs.cache-hit != 'true'
name: Install required tools
run: sudo apt-get install -y libelf-dev
run: sudo apt-get install --yes --no-install-recommends libelf-dev
- if: steps.restore-cached-kernel.outputs.cache-hit != 'true'
name: Build kernel
run: |
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
LLVM_GSYMUTIL: /usr/bin/llvm-gsymutil-18
steps:
- name: Install development dependencies
run: sudo apt-get install -y gcc-multilib libelf-dev zlib1g-dev
run: sudo apt-get install --yes --no-install-recommends gcc-multilib libelf-dev zlib1g-dev
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- name: Check incremental rebuilds
Expand All @@ -171,7 +171,7 @@ jobs:
LLVM_GSYMUTIL: /usr/bin/llvm-gsymutil-18
steps:
- name: Install development dependencies
run: sudo apt-get install -y gcc-multilib libelf-dev zlib1g-dev
run: sudo apt-get install --yes --no-install-recommends gcc-multilib libelf-dev zlib1g-dev
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -255,7 +255,7 @@ jobs:
LLVM_GSYMUTIL: /usr/bin/llvm-gsymutil-18
steps:
- name: Install development dependencies
run: sudo apt-get install -y gcc-multilib libelf-dev zlib1g-dev
run: sudo apt-get install --yes --no-install-recommends gcc-multilib libelf-dev zlib1g-dev
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo check --package=blazesym-dev --features=generate-unit-test-files
Expand Down Expand Up @@ -294,7 +294,7 @@ jobs:
LLVM_GSYMUTIL: /usr/bin/llvm-gsymutil-18
steps:
- name: Install development dependencies
run: sudo apt-get install -y gcc-multilib libelf-dev zlib1g-dev
run: sudo apt-get install --yes --no-install-recommends gcc-multilib libelf-dev zlib1g-dev
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
Expand All @@ -317,7 +317,7 @@ jobs:
LLVM_GSYMUTIL: /usr/bin/llvm-gsymutil-18
steps:
- name: Install development dependencies
run: sudo apt-get install -y gcc-multilib libelf-dev zlib1g-dev liblzma-dev
run: sudo apt-get install --yes --no-install-recommends gcc-multilib libelf-dev zlib1g-dev liblzma-dev
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
Expand All @@ -330,7 +330,7 @@ jobs:
MIRIFLAGS: '-Zmiri-disable-stacked-borrows'
steps:
- name: Install development dependencies
run: sudo apt-get install -y libelf-dev zlib1g-dev
run: sudo apt-get install --yes --no-install-recommends libelf-dev zlib1g-dev
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
Expand All @@ -355,7 +355,7 @@ jobs:
LLVM_GSYMUTIL: /usr/bin/llvm-gsymutil-18
steps:
- name: Install development dependencies
run: sudo apt-get install -y gcc-multilib libelf-dev zlib1g-dev
run: sudo apt-get install --yes --no-install-recommends gcc-multilib libelf-dev zlib1g-dev
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo run --example backtrace
Expand Down Expand Up @@ -383,7 +383,7 @@ jobs:
LLVM_GSYMUTIL: /usr/bin/llvm-gsymutil-18
steps:
- name: Install development dependencies
run: sudo apt-get install -y gcc-multilib libelf-dev zlib1g-dev
run: sudo apt-get install --yes --no-install-recommends gcc-multilib libelf-dev zlib1g-dev
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- name: Run benchmarks
Expand All @@ -404,7 +404,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install development dependencies
run: sudo apt-get install -y libelf-dev zlib1g-dev
run: sudo apt-get install --yes --no-install-recommends libelf-dev zlib1g-dev
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo clippy --workspace --no-deps --all-targets --features=blazesym-dev/dont-generate-unit-test-files -- -A unknown_lints -D clippy::todo
Expand Down

0 comments on commit 1da7891

Please sign in to comment.