Skip to content

Commit

Permalink
CI: Print homebrew directory sizes (maybe we should cache one?)
Browse files Browse the repository at this point in the history
  • Loading branch information
ongardie committed Feb 1, 2024
1 parent 51949fa commit 6a1a75f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,20 @@ jobs:
- build-macos-13-stable
runs-on: macos-13
steps:
- name: Print homebrew info
run: |
set -x
du -sh /Users/runner/Library/Caches/Homebrew/
du -sh /Users/runner/Library/Caches/Homebrew/downloads/
- name: Install Docker
run: brew install docker
- name: Install Colima
run: brew install colima
- name: Print homebrew info
run: |
set -x
du -sh /Users/runner/Library/Caches/Homebrew/
du -sh /Users/runner/Library/Caches/Homebrew/downloads/
- name: Start Colima
run: colima start --vm-type vz
- name: Docker hello world
Expand Down
13 changes: 13 additions & 0 deletions src/bin/gen_github_yaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,19 @@ fn system_test_job(os: Os, runner: Runner, needs: Vec<JobKey>) -> (JobKey, Job)
// Docker isn't installed on the Mac runners due to licensing issues:
// see <https://github.com/actions/runner-images/issues/2150>.
fn docker_mac_install_steps() -> Vec<Step> {
let print_homebrew_info = || Step {
name: s("Print homebrew info"),
details: Run {
run: s(indoc! {"
set -x
du -sh /Users/runner/Library/Caches/Homebrew/
du -sh /Users/runner/Library/Caches/Homebrew/downloads/
"}),
},
env: dict! {},
};
vec![
print_homebrew_info(),
Step {
name: s("Install Docker"),
details: Run {
Expand All @@ -633,6 +645,7 @@ fn docker_mac_install_steps() -> Vec<Step> {
},
env: dict! {},
},
print_homebrew_info(),
Step {
name: s("Start Colima"),
details: Run {
Expand Down

0 comments on commit 6a1a75f

Please sign in to comment.