Skip to content

Commit c79e653

Browse files
authored
Fix macOS CircleCI jobs (facebook#2674)
1 parent 53ecffd commit c79e653

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.circleci/config.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ install_golang: &install_golang
103103
go version
104104
105105
install_python: &install_python
106-
name: Install Python 3.6.2
106+
name: Install Python 3.9.4
107107
command: |
108108
if [ "${PLATFORM}" == "macos" ]; then
109109
brew install pyenv
@@ -116,15 +116,15 @@ install_python: &install_python
116116
pyenv versions
117117
export PATH="$(pyenv root)/shims:${PATH}"
118118
python_version=`python --version` || python_version="Python Not Found"
119-
# Skip installation if Python 3.6.2 restored frm cache.
120-
if [ "${python_version}" != "Python 3.6.2" ]; then
119+
# Skip installation if Python 3.9.4 restored frm cache.
120+
if [ "${python_version}" != "Python 3.9.4" ]; then
121121
# In the case that pyenv is upgraded to a new version, the cached python
122122
# is broken and should be uninstalled.
123-
pyenv uninstall -f 3.6.2
124-
pyenv install -s 3.6.2
125-
pyenv global 3.6.2 system
123+
pyenv uninstall -f 3.9.4
124+
pyenv install -s 3.9.4
125+
pyenv global 3.9.4 system
126126
else
127-
echo "Python3.6.2 restored from cache, skip installation."
127+
echo "Python3.9.4 restored from cache, skip installation."
128128
fi
129129
python --version
130130
@@ -1436,8 +1436,8 @@ jobs:
14361436
command: choco install ant --version=1.9.7
14371437
shell: cmd.exe
14381438
- run:
1439-
name: Install OpenJDK8
1440-
command: choco install adoptopenjdk8
1439+
name: Install OpenJDK11
1440+
command: choco install adoptopenjdk11
14411441
shell: cmd.exe
14421442
- run:
14431443
# on Windows, python3 is installed as python but buck expect the name python3
@@ -1465,8 +1465,8 @@ jobs:
14651465
command: choco install ant --version=1.9.7
14661466
shell: cmd.exe
14671467
- run:
1468-
name: Install OpenJDK8
1469-
command: choco install adoptopenjdk8
1468+
name: Install OpenJDK11
1469+
command: choco install adoptopenjdk11
14701470
shell: cmd.exe
14711471
- run:
14721472
# on Windows, python3 is installed as python but buck expect the name python3

0 commit comments

Comments
 (0)