Skip to content

Action stopped working on macos-13 - was: Hangs indefinetely on macos-13 after brew update #374

@Andrej730

Description

@Andrej730

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)

Image

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."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions