fix(ci): move to ubuntu

This commit is contained in:
Timothy Stewart
2024-01-22 21:53:45 -06:00
parent e5a1da1913
commit c54a1c62ef
3 changed files with 50 additions and 37 deletions

View File

@@ -5,7 +5,7 @@ on:
jobs:
molecule:
name: cache
runs-on: macos-12
runs-on: ubuntu-large-runner
env:
PYTHON_VERSION: "3.11"
@@ -58,28 +58,35 @@ jobs:
restore-keys: |
vagrant-boxes
- name: Configure Homebrew cache
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
id: cache-homebrew
with:
path: |
~/Library/Caches/Homebrew
key: brew-${{ hashFiles('./Brewfile') }}
restore-keys: brew-
- name: Update Homebrew
if: | # only run if false since this is just a cache step
steps.cache-homebrew.outputs.cache-hit != 'true' || steps.cache-vagrant.outputs.cache-hit != 'true'
- name: install apt packages
run: |
brew update --preinstall
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt -y install vagrant virtualbox
- name: Install Homebrew dependencies
if: | # only run if false since this is just a cache step
steps.cache-homebrew.outputs.cache-hit != 'true' || steps.cache-cache-vagrant.outputs.cache-hit != 'true'
run: |
env HOMEBREW_NO_AUTO_UPDATE=1 brew bundle --no-upgrade --file ./Brewfile
vagrant --version
vboxmanage --version
# - name: Configure Homebrew cache
# uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
# id: cache-homebrew
# with:
# path: |
# ~/Library/Caches/Homebrew
# key: brew-${{ hashFiles('./Brewfile') }}
# restore-keys: brew-
# - name: Update Homebrew
# if: | # only run if false since this is just a cache step
# steps.cache-homebrew.outputs.cache-hit != 'true' || steps.cache-vagrant.outputs.cache-hit != 'true'
# run: |
# brew update --preinstall
# - name: Install Homebrew dependencies
# if: | # only run if false since this is just a cache step
# steps.cache-homebrew.outputs.cache-hit != 'true' || steps.cache-cache-vagrant.outputs.cache-hit != 'true'
# run: |
# env HOMEBREW_NO_AUTO_UPDATE=1 brew bundle --no-upgrade --file ./Brewfile
# vagrant --version
# vboxmanage --version
- name: Download Vagrant boxes for all scenarios
# To save some cache space, all scenarios share the same cache key.