cache homebrew packages #216
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check provision | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
env: | |
WORKSPACE_REPOSITORY_URL: https://github.com/rikuson/workspace.git | |
jobs: | |
cui: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache gem | |
uses: actions/cache@v4 | |
with: | |
path: /Library/Ruby/Gems | |
key: cui-${{ runner.os }}-gem-${{ hashFiles('install.sh') }} | |
restore-keys: | | |
cui-${{ runner.os }}-gem- | |
- name: Cache homebrew | |
uses: actions/cache@v4 | |
with: | |
path: | | |
/usr/local/Cellar | |
/Users/runner/Library/Caches/Homebrew | |
key: cui-${{ runner.os }}-homebrew-packages-${{ hashFiles('install.sh', 'roles/*/tasks/homebrew.yml') }} | |
restore-keys: | | |
cui-${{ runner.os }}-homebrew-packages- | |
- name: Cache asdf | |
uses: actions/cache@v4 | |
with: | |
path: /Users/runner/.asdf | |
key: cui-${{ runner.os }}-asdf-${{ hashFiles('install.sh') }} | |
restore-keys: | | |
cui-${{ runner.os }}-asdf- | |
- name: Relink homebrew | |
run: brew link --overwrite ansible || true | |
- name: Install | |
run: /bin/zsh ./install.sh | |
- name: Play cui tasks | |
run: make cui | |
- name: Check cui spec | |
run: rake serverspec:cui | |
os: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache gem | |
uses: actions/cache@v4 | |
with: | |
path: /Library/Ruby/Gems | |
key: os-${{ runner.os }}-gem-${{ hashFiles('install.sh') }} | |
restore-keys: | | |
os-${{ runner.os }}-gem- | |
- name: Cache homebrew | |
uses: actions/cache@v4 | |
with: | |
path: | | |
/usr/local/Cellar | |
/Users/runner/Library/Caches/Homebrew | |
key: os-${{ runner.os }}-homebrew-packages-${{ hashFiles('install.sh', 'roles/*/tasks/homebrew.yml') }} | |
restore-keys: | | |
os-${{ runner.os }}-homebrew-packages- | |
- name: Cache asdf | |
uses: actions/cache@v4 | |
with: | |
path: /Users/runner/.asdf | |
key: os-${{ runner.os }}-asdf-${{ hashFiles('install.sh') }} | |
restore-keys: | | |
os-${{ runner.os }}-asdf- | |
- name: Relink homebrew | |
run: brew link --overwrite ansible || true | |
- name: Install | |
run: /bin/zsh ./install.sh | |
- name: Play os tasks | |
run: make os | |
- name: Check os spec | |
run: rake serverspec:os |