i'm attempting to cache the homebrew packages for my repo using the actions/cache github action in my workflow file. i use different runners for my project, ie. the arm64 macos runner, and the legacy amd64 / intel macos runners. with homebrew installed on macos arm, the default prefix ie. $(brew --prefix) is /opt/homebrew whereas on intel macs, the default homebrew prefix is /usr/local
i attempted to use the below step in my workflow file to setup some vars to be used throughout my workflow however i don't think this action actions/cache supports using variables stored in the GITHUB_ENV from what i have been trying.
i'm attempting to cache the homebrew packages for my repo using the
actions/cache
github action in my workflow file. i use different runners for my project, ie. the arm64 macos runner, and the legacy amd64 / intel macos runners. with homebrew installed on macos arm, the default prefix ie.$(brew --prefix)
is/opt/homebrew
whereas on intel macs, the default homebrew prefix is/usr/local
i attempted to use the below step in my workflow file to setup some vars to be used throughout my workflow however i don't think this action
actions/cache
supports using variables stored in theGITHUB_ENV
from what i have been trying.the only way i've been able to properly save a cache is to use a literal path ie.
/opt/homebrew
does this action not support the use of variables when setting the
path:
key?