Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Fix macOS CircleCI jobs (#2674)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajyengi authored Dec 23, 2021
1 parent 53ecffd commit c79e653
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ install_golang: &install_golang
go version
install_python: &install_python
name: Install Python 3.6.2
name: Install Python 3.9.4
command: |
if [ "${PLATFORM}" == "macos" ]; then
brew install pyenv
Expand All @@ -116,15 +116,15 @@ install_python: &install_python
pyenv versions
export PATH="$(pyenv root)/shims:${PATH}"
python_version=`python --version` || python_version="Python Not Found"
# Skip installation if Python 3.6.2 restored frm cache.
if [ "${python_version}" != "Python 3.6.2" ]; then
# Skip installation if Python 3.9.4 restored frm cache.
if [ "${python_version}" != "Python 3.9.4" ]; then
# In the case that pyenv is upgraded to a new version, the cached python
# is broken and should be uninstalled.
pyenv uninstall -f 3.6.2
pyenv install -s 3.6.2
pyenv global 3.6.2 system
pyenv uninstall -f 3.9.4
pyenv install -s 3.9.4
pyenv global 3.9.4 system
else
echo "Python3.6.2 restored from cache, skip installation."
echo "Python3.9.4 restored from cache, skip installation."
fi
python --version
Expand Down Expand Up @@ -1436,8 +1436,8 @@ jobs:
command: choco install ant --version=1.9.7
shell: cmd.exe
- run:
name: Install OpenJDK8
command: choco install adoptopenjdk8
name: Install OpenJDK11
command: choco install adoptopenjdk11
shell: cmd.exe
- run:
# on Windows, python3 is installed as python but buck expect the name python3
Expand Down Expand Up @@ -1465,8 +1465,8 @@ jobs:
command: choco install ant --version=1.9.7
shell: cmd.exe
- run:
name: Install OpenJDK8
command: choco install adoptopenjdk8
name: Install OpenJDK11
command: choco install adoptopenjdk11
shell: cmd.exe
- run:
# on Windows, python3 is installed as python but buck expect the name python3
Expand Down

0 comments on commit c79e653

Please sign in to comment.