Skip to content

Commit

Permalink
Add eldarica to osx cache
Browse files Browse the repository at this point in the history
  • Loading branch information
r0qs committed Mar 26, 2024
1 parent e46c99a commit 2e46267
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ commands:
name: Installing dependencies / Restoring dependency cache
command: |
if [[ -f ~/osx-dependencies-cached ]]; then
echo "Dependency flag exists. Removing /usr/local/ and /opt/homebrew/. These directories will be restored from cache."
echo "Dependency flag exists. Removing /usr/local/, /opt/homebrew/ and /opt/eldarica. These directories will be restored from cache."
# CircleCI is providing the circleci cli tools via some kind of symlink magic.
# So we just save the original symlinks and restore them later.
Expand All @@ -406,6 +406,12 @@ commands:
sudo mkdir -p /opt/homebrew/bin
sudo chmod 777 /opt/{homebrew,homebrew/bin}
fi
# Eldarica is installed in /opt/eldarica
if [[ -d /opt/eldarica ]]; then
sudo rm -rf /opt/eldarica
sudo mkdir /opt/eldarica
sudo chmod 777 /opt/eldarica
fi
# under macos /usr/local itself is read-only, so we just remove its sub-directories.
sudo rm -rf /usr/local/*
sudo mkdir -p /usr/local/bin
Expand All @@ -431,6 +437,8 @@ commands:
# Homebrew is installed in /usr/local on intel macs, but in /opt/homebrew on apple silicon.
- /usr/local
- /opt/homebrew
- /opt/eldarica
- /etc/paths.d/10-eldarica
- save_cache:
key: osx-dependencies-cached-{{ arch }}-{{ checksum ".circleci/osx_install_dependencies.sh" }}
paths:
Expand Down

0 comments on commit 2e46267

Please sign in to comment.