Provision Forgejo act cache on macOS
Some checks are pending
Build Rust / Cargo Test (push) Waiting to run
Build Site / Next.js Build (push) Waiting to run
Build Apple / Build App (macOS) (push) Has started running
Build Apple / Build App (iOS Simulator) (push) Has started running

This commit is contained in:
Conrad Kramer 2026-03-19 00:13:11 -07:00
parent 15e897d262
commit 7039bf5aad

View file

@ -597,8 +597,9 @@ func macosBootstrapScript() string {
workdir="${FORGEJO_RUNNER_WORKDIR:-/tmp/forgejo-runner}"
mkdir -p "${workdir}"
cd "${workdir}"
export HOME="${workdir}/home"
mkdir -p "${HOME}/.cache/act"
if ! mkdir -p "/Users/runner/.cache/act" 2>/dev/null; then
sudo install -d -m 0775 -o "$(id -un)" -g "$(id -gn)" /Users/runner/.cache /Users/runner/.cache/act
fi
export PATH="/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin:${PATH}"