Attempt to fix CircleCI build

This commit is contained in:
grossmj 2021-02-27 13:49:22 +10:30
parent a6eb1cc09f
commit e5813a255e

View File

@ -1,5 +1,9 @@
# iOS CircleCI 2.1 configuration file
version: 2.1
orbs:
node: circleci/node@4.2.0
jobs:
build:
macos:
@ -7,13 +11,16 @@ jobs:
steps:
- checkout
- node/install:
install-yarn: true
- run:
name: Install nodejs
name: Update BREW and print configs
command: |
brew update
brew upgrade yarn
brew upgrade node
brew analytics off
brew --env
brew --config
- run:
name: Set timezone and check current datetime
@ -34,6 +41,8 @@ jobs:
curl -o /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/readline.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/b1bd1c4a62e1336422de3614d1fc49ffbce589a8/Formula/readline.rb
# remove check for old compilers which creates the error described in https://github.com/sashkab/homebrew-python/issues/36
sed -i.bak -e '58,61d' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb
# remove 'do devel' block to avoid error: Calling 'devel' blocks in formulae is disabled!
sed -i.bak -e '14,17d' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb
brew unlink python
brew uninstall --ignore-dependencies readline
brew install readline
@ -41,7 +50,7 @@ jobs:
brew pin readline
# --ignore-dependencies is used to prevent this issue: https://github.com/tensorflow/tensorflow/issues/25093
brew install --ignore-dependencies python
brew switch python 3.6.5_1
#brew link python 3.6.5_1
brew info python
brew pin python
@ -105,4 +114,3 @@ workflows:
filters:
tags:
only: /v.*/