From aaff74575f6ac1b82582da9224ad2605f2840eec Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 5 Feb 2024 23:53:57 -0500 Subject: [PATCH] Remove unused brew packages on macOS (#531) * Remove unused brew packages on macOS * Remove reference to Docker in macOS CI * Remove gems, explicitly test Intel and m1 macOS * Allow gem to error since it still mostly runs --- .github/actions/build-dependencies/action.yml | 11 +++++++++++ .github/workflows/lint.yml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/actions/build-dependencies/action.yml b/.github/actions/build-dependencies/action.yml index bd66e70f..2a8e8ed8 100644 --- a/.github/actions/build-dependencies/action.yml +++ b/.github/actions/build-dependencies/action.yml @@ -16,6 +16,17 @@ runs: docker system prune -a --volumes if: runner.os == 'Linux' + - name: Remove unused packages + shell: bash + run: | + (gem uninstall -aIx) || (exit 0) + brew uninstall --force "*msbuild*" "*powershell*" "*nuget*" "*bazel*" "*ansible*" "*terraform*" "*heroku*" "*aws*" azure-cli + brew uninstall --force "*nodejs*" "*npm*" "*yarn*" "*java*" "*kotlin*" "*golang*" "*swift*" "*julia*" "*fortran*" "*android*" + brew uninstall --force "*apache2*" "*nginx*" "*firefox*" "*chromium*" "*chrome*" "*edge*" + brew uninstall --force "*qemu*" "*sql*" "*texinfo*" "*imagemagick*" + brew cleanup + if: runner.os == 'macOS' + - name: Install dependencies shell: bash run: | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 70711264..4ed32f9f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: clippy: strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-latest, macos-13, macos-14, windows-latest] runs-on: ${{ matrix.os }} steps: