Skip to content

Commit 622a46d

Browse files
Update CI workflow to include apt update before package installation (#212)
Apparently, as per [GitHub Actions documentation](https://docs.github.com/en/actions/how-tos/using-github-hosted-runners/customizing-github-hosted-runners#installing-software-on-ubuntu-runners), we need to run `apt update` before `apt install`. We have not hit a particularly bad apt cache in our runner images (since GH Actions updates them very regularly) before, so we were able to save a tiny bit of time by not actually running `apt update`. However, apparently in PR #211 (see [this CI run result](https://github.com/microsoft/litebox/actions/runs/16306783607/job/46054462004?pr=211)), we actually hit a cache issue. This PR fixes this by always doing an `apt update`.
1 parent e139897 commit 622a46d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- name: Check out repo
2222
uses: actions/checkout@v4
23-
- run: sudo apt install -y musl-tools
23+
- run: sudo apt update && sudo apt install -y musl-tools
2424
- name: "Ratchet: ensure number of 'transmute's in codebase is not increasing"
2525
run: |
2626
if [ $(find . -name \*.rs -print0 | xargs -0 grep 'transmute' | wc -l) -eq 5 ]; then \
@@ -59,7 +59,7 @@ jobs:
5959
steps:
6060
- name: Check out repo
6161
uses: actions/checkout@v4
62-
- run: sudo apt install -y gcc-multilib musl-tools
62+
- run: sudo apt update && sudo apt install -y gcc-multilib musl-tools
6363
- name: Set up Rust
6464
run: |
6565
rustup toolchain install $(awk -F'"' '/channel/{print $2}' rust-toolchain.toml) --profile minimal --no-self-update --component rustfmt,clippy --target i686-unknown-linux-gnu,i686-unknown-linux-musl

0 commit comments

Comments
 (0)