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

Improve ARM Darwin CI stability #586

Merged
merged 2 commits into from
Oct 22, 2024
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
11 changes: 9 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ jobs:
- '1.21'
runs-on: ${{ matrix.runs-on }}
name: Darwin Go ${{ matrix.go }} ${{ join(matrix.runs-on, ' ') }}
env:
HOMEBREW_CACHE: ${{ github.workspace }}/brew-cache
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -68,14 +70,19 @@ jobs:
- name: Local brew cache key
if: matrix.runs-on != 'macos-latest'
id: brew-cache-key
run: echo "key=$(date +'%Y-%U')" | tee ${GITHUB_OUTPUT} # weekly update cache
run: echo "key=$(date +'%Y-%U')" | tee ${GITHUB_OUTPUT} # weekly refresh the cache
- name: Cache brew
if: matrix.runs-on != 'macos-latest'
uses: actions/cache@v4
with:
path: ${{ env.HOMEBREW_CACHE }}
key: ${{ runner.os }}-brew-cache-${{ steps.brew-cache-key.outputs.key }}
- name: Cache local brew taps
if: matrix.runs-on != 'macos-latest'
uses: actions/cache@v4
with:
path: homebrew/Library/Taps
key: ${{ runner.os }}-brew-taps-${{ steps.brew-cache-key.outputs.key }}
restore-keys: ${{ runner.os }}-brew-taps-
- name: Set up brew to install deps under temporary dir
if: matrix.runs-on != 'macos-latest'
run: |
Expand Down
Loading