Skip to content

Commit bf60a8d

Browse files
author
Kristian Larsson
committed
Refresh apt metadata for cargo
The deploy workflow installs cargo from Ubuntu packages before the guide checkout and build. On ubuntu-24.04 this could fail immediately with 404 responses for rustc and cargo packages when the runner image's apt package lists lagged behind the mirrors. Refresh apt indexes immediately before installing cargo so the package selection matches the current archive state. While touching the workflow, move actions/cache to v4 to stay on a supported JavaScript runtime for runner updates. This keeps the deploy job working across runner image refreshes without changing the guide build itself.
1 parent 740c2ec commit bf60a8d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ jobs:
1616
echo "PAGES_BRANCH=gh-pages" >> $GITHUB_ENV
1717
if: github.ref == 'refs/heads/main'
1818
- name: 'Install cargo'
19-
run: sudo apt-get install -qy cargo
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -qy cargo
2022
- name: "Cache cargo"
21-
uses: actions/cache@v3
23+
uses: actions/cache@v4
2224
with:
2325
path: ~/.cargo
2426
key: cargo

0 commit comments

Comments
 (0)