Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MacOS 11 for build, remove cleanup section, add sshpass #336

Merged
merged 1 commit into from
Oct 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 2 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ env:
jobs:
build-boxes:
name: "*"
runs-on: macos-10.15
runs-on: macos-11
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -122,28 +122,13 @@ jobs:
with:
submodules: true

- name: Remove useless packages to free up space (Windows builds)
if: ${{ env.skip != 'true' && contains(github.event.inputs.build, 'windows') }}
run: |
set -x
brew install bash
/usr/local/bin/bash << \EOF
readarray -t BREW_FORMULAS < <(brew list --formula | grep -v bash) ;
brew remove --force "${BREW_FORMULAS[@]}" ;
readarray -t BREW_CASKS < <(brew list --casks | grep -v bash) ;
brew remove --force "${BREW_CASKS[@]}" ;
EOF
brew cleanup -s
rm -rf "$(brew --cache)"
rm -rf /Users/runner/hostedtoolcache

- name: Install packages
if: ${{ env.skip != 'true' }}
run: |
set -x
[[ -f /usr/local/bin/2to3 ]] && rm /usr/local/bin/2to3
brew update > /dev/null
brew install bash coreutils gettext gnu-sed jq packer [email protected] vagrant
brew install bash coreutils gettext gnu-sed jq packer [email protected] hudochenkov/sshpass/sshpass vagrant
MATRIX_STAGE="${{ matrix.stage }}"
if [[ "${MATRIX_STAGE}" =~ "libvirt" ]]; then
brew install qemu xorriso
Expand Down