Skip to content

Commit

Permalink
Run Homebrew update on every macOS CI run (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylefleming authored Dec 4, 2020
1 parent dfeaeb6 commit 8dfbad4
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ executors:

macos:
parameters:
xcode-version:
type: string
default: *default-xcode-version
xcode-version: { type: string, default: *default-xcode-version }
macos:
xcode: << parameters.xcode-version >>
environment:
Expand Down Expand Up @@ -190,18 +188,15 @@ commands:
- restore_cache:
name: Restore Homebrew cache
key: v0-homebrew-{{ arch }}
- when:
condition: { equal: [ << pipeline.git.branch >>, master ] }
steps:
- run:
name: Update Homebrew
command: |
brew --version
brew update --preinstall
- run:
name: Install Homebrew dependencies
name: Update Homebrew
command: |
brew --version
brew update --preinstall
brew --version
- run:
name: Install Homebrew dependencies
command: |
brew bundle --no-upgrade
save-homebrew-cache:
Expand Down Expand Up @@ -253,10 +248,7 @@ commands:
prepare-for-build:
parameters:
os:
type: enum
enum: ["linux", "macos", "windows"]
default: linux
os: { type: enum, enum: [ "linux", "macos", "windows" ], default: linux }
steps:
- checkout
- when:
Expand Down Expand Up @@ -498,9 +490,7 @@ jobs:
# Build using macOS
build-macos:
parameters:
xcode-version:
type: string
default: *default-xcode-version
xcode-version: { type: string, default: *default-xcode-version }
executor:
name: macos
xcode-version: << parameters.xcode-version >>
Expand All @@ -510,8 +500,7 @@ jobs:
RUSTFLAGS: -D warnings -C target-cpu=penryn
CONSENSUS_ENCLAVE_CSS: /Users/distiller/project/sgx/css/src/valid.css
steps:
- prepare-for-build:
os: macos
- prepare-for-build: { os: macos }
- run:
name: Cargo check
command: |
Expand Down

0 comments on commit 8dfbad4

Please sign in to comment.