Skip to content

Commit

Permalink
Run apt update before removing unneeded packages, since removing some…
Browse files Browse the repository at this point in the history
… packages may (unintuitively) require installations of substitute packages
  • Loading branch information
grg-haas committed Jun 11, 2024
1 parent 5c9c030 commit ec6e90c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
- name: Clear storage space
run: |
# Miscellaneous chunky packages
sudo apt update
sudo apt remove -y 'dotnet*' 'temurin*' '*llvm*' '*libclang*' '*mono*' \
'google-cloud-cli' 'azure-cli' 'powershell' 'msbuild' \
'microsoft-edge-stable' 'google-chrome-stable' 'firefox' 'nginx-core'
Expand All @@ -86,7 +87,7 @@ jobs:
# Install build dependencies
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cpio rsync bc makeself
run: sudo apt-get install -y cpio rsync bc makeself

# Restore build and download caches. We key these based on timestamps and build
# target, since these essentially "accumulate" useful information (such as source
Expand Down

0 comments on commit ec6e90c

Please sign in to comment.