Hi! Not sure when, but recently the workflow broke (it hangs for a very long time and never finishes) if used with macos-13 runner and has brew update before it, see example yml below.
You can use this repo to reproduce the issue - https://github.com/Andrej730/ccache-bug-report
It has test workflows for macos-13 (hangs), macos-14 (works fine, ccache step is finished 17 sec), macos-13+no brew update (works fine, ccache is finished in 13 sec)
On a side note, macos-13 is based on macos 13 and intel, but confusingly macos-14 is based on macos 14 and arm64 (see https://github.com/actions/runner-images#available-images). So it be some kind of problem on intel machines.
Example yml:
name: macOS ccache Hang Investigation
on:
workflow_dispatch:
jobs:
investigate-ccache-hang:
runs-on: macos-13
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Update Homebrew
run: brew update
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: mac-${{ runner.arch }}
- name: This step should run
run: echo "This step runs after ccache."
Hi! Not sure when, but recently the workflow broke (it hangs for a very long time and never finishes) if used with
macos-13runner and hasbrew updatebefore it, see example yml below.You can use this repo to reproduce the issue - https://github.com/Andrej730/ccache-bug-report
It has test workflows for
macos-13(hangs),macos-14(works fine,ccachestep is finished 17 sec),macos-13+nobrew update(works fine,ccacheis finished in 13 sec)On a side note,
macos-13is based on macos 13 and intel, but confusinglymacos-14is based on macos 14 and arm64 (see https://github.com/actions/runner-images#available-images). So it be some kind of problem on intel machines.Example yml: