fix(ci): move to macos13

This commit is contained in:
Timothy Stewart
2024-01-21 14:11:24 -06:00
parent 68f8f20cd7
commit 03e0d00180
2 changed files with 20 additions and 23 deletions

View File

@@ -15,6 +15,21 @@ jobs:
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
- name: Update Homebrew
run: |
brew update --preinstall
echo ${{ hashFiles ('"$(brew --repository)"') }} > .github/brew-formulae
- name: Configure Homebrew cache
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
with:
path: |
~/Library/Caches/Homebrew
key: brew-${{ hashFiles('.github/brew-formulae') }}
restore-keys: brew-
- name: Install Homebrew dependencies
run: |
env HOMEBREW_NO_AUTO_UPDATE=1 brew install virtualbox vagrant
- name: Cache Vagrant boxes - name: Cache Vagrant boxes
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
with: with:
@@ -24,20 +39,8 @@ jobs:
restore-keys: | restore-keys: |
vagrant-boxes vagrant-boxes
- name: Update Homebrew - name: Download Vagrant boxes for all scenarios
run: | # To save some cache space, all scenarios share the same cache key.
brew update --preinstall # On the other hand, this means that the cache contents should be
echo ${{ hashFiles ('"$(brew --repository)"') }} > .github/brew-formulae # the same across all scenarios. This step ensures that.
- name: Configure Homebrew cache run: ./.github/download-boxes.sh
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
with:
path: |
~/Library/Caches/Homebrew/virtualbox--*
~/Library/Caches/Homebrew/vagrant--*
~/Library/Caches/Homebrew/downloads/*--virtualbox-*
~/Library/Caches/Homebrew/downloads/*--vagrant-*
key: brew-${{ hashFiles('.github/brew-formulae') }}
restore-keys: brew-
- name: Install Homebrew dependencies
run: |
env HOMEBREW_NO_AUTO_UPDATE=1 brew install virtualbox vagrant

View File

@@ -30,12 +30,6 @@ jobs:
* fdad:bad:ba55::/64 * fdad:bad:ba55::/64
EOF EOF
- name: Download Vagrant boxes for all scenarios
# To save some cache space, all scenarios share the same cache key.
# On the other hand, this means that the cache contents should be
# the same across all scenarios. This step ensures that.
run: ./.github/download-boxes.sh
- name: Set up Python ${{ env.PYTHON_VERSION }} - name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@75f3110429a8c05be0e1bf360334e4cced2b63fa # 2.3.3 uses: actions/setup-python@75f3110429a8c05be0e1bf360334e4cced2b63fa # 2.3.3
id: pip-cache id: pip-cache