Skip to content

Commit

Permalink
Don't install curl from Homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-apollo committed Jul 22, 2024
1 parent ce3d4e4 commit 6646cc7
Showing 1 changed file with 32 additions and 39 deletions.
71 changes: 32 additions & 39 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ any_release: &any_release
branches:
ignore: /.*/
tags:
only : /(apollo-federation-types@v.*)|(router-bridge@v.*)|(composition@v.*)/
only: /(apollo-federation-types@v.*)|(router-bridge@v.*)|(composition@v.*)/

# These filters are used to determine which package to release
crate_release: &crate_release
filters:
branches:
ignore: /.*/
tags:
only : /(apollo-federation-types@v.*)|(router-bridge@v.*)/
only: /(apollo-federation-types@v.*)|(router-bridge@v.*)/

# These filters are used to determine which package to release
composition_release: &composition_release
filters:
branches:
ignore: /.*/
tags:
only : /(composition@v.*)/
only: /(composition@v.*)/

parameters:
# we can't easily pin on osx, and we chose not to on windows.
Expand All @@ -44,25 +44,25 @@ workflows:
name: Lint
matrix:
parameters:
platform: [amd_ubuntu]
rust_channel: [stable]
command: [lint]
platform: [ amd_ubuntu ]
rust_channel: [ stable ]
command: [ lint ]
test:
jobs:
- xtask:
name: Run cargo tests (<< matrix.rust_channel >> rust on << matrix.platform >>)
matrix:
parameters:
platform: [amd_ubuntu, arm_ubuntu, amd_linux, amd_macos, arm_macos, amd_windows]
rust_channel: [stable]
command: [test]
platform: [ amd_ubuntu, arm_ubuntu, amd_linux, amd_macos, arm_macos, amd_windows ]
rust_channel: [ stable ]
command: [ test ]

- check_for_github_action:
name: Check to ensure Github Action has completed successfully (<< matrix.platform >>)
matrix:
parameters:
platform: [amd_macos]
requires:
platform: [ amd_macos ]
requires:
- "Run cargo tests (stable rust on amd_macos)"

release:
Expand All @@ -71,17 +71,17 @@ workflows:
name: Run cargo tests (<< matrix.rust_channel >> rust on << matrix.platform >>)
matrix:
parameters:
platform: [amd_ubuntu, arm_ubuntu, amd_linux, amd_macos, arm_macos, amd_windows]
rust_channel: [stable]
command: [test]
platform: [ amd_ubuntu, arm_ubuntu, amd_linux, amd_macos, arm_macos, amd_windows ]
rust_channel: [ stable ]
command: [ test ]
<<: *any_release
- xtask:
name: Build and bundle release artifacts (<< matrix.platform >>)
matrix:
parameters:
platform: [amd_ubuntu, arm_ubuntu, amd_macos, arm_macos, amd_windows]
rust_channel: [stable]
command: [package]
platform: [ amd_ubuntu, arm_ubuntu, amd_macos, arm_macos, amd_windows ]
rust_channel: [ stable ]
command: [ package ]
requires:
- "Run cargo tests (stable rust on amd_ubuntu)"
- "Run cargo tests (stable rust on arm_ubuntu)"
Expand All @@ -94,16 +94,16 @@ workflows:
name: Check to ensure Github Action has completed successfully (<< matrix.platform >>)
matrix:
parameters:
platform: [amd_macos]
requires:
platform: [ amd_macos ]
requires:
- "Run cargo tests (stable rust on amd_macos)"
<<: *any_release

- publish_release:
name: Publish to crates.io and create a GitHub release
matrix:
parameters:
platform: [minimal_linux]
platform: [ minimal_linux ]
requires:
- "Build and bundle release artifacts (amd_ubuntu)"
- "Build and bundle release artifacts (arm_ubuntu)"
Expand All @@ -117,7 +117,7 @@ workflows:
name: Publish to crates.io
matrix:
parameters:
platform: [minimal_linux]
platform: [ minimal_linux ]
requires:
- "Run cargo tests (stable rust on amd_ubuntu)"
- "Run cargo tests (stable rust on arm_ubuntu)"
Expand Down Expand Up @@ -146,13 +146,13 @@ jobs:
parameters:
rust_channel:
type: enum
enum: ["stable", "nightly"]
enum: [ "stable", "nightly" ]
default: stable
platform:
type: executor
command:
type: enum
enum: [lint, test, publish, package, dist]
enum: [ lint, test, publish, package, dist ]
options:
type: string
default: ""
Expand Down Expand Up @@ -188,14 +188,14 @@ jobs:
platform: << parameters.platform >>
command: dist
options: --debug
# this should be run before the GitHub release is created
# because it ensures that all of the files it needs
# are in place before proceeding.
# this should be run before the GitHub release is created
# because it ensures that all of the files it needs
# are in place before proceeding.
- exec_xtask:
platform: << parameters.platform >>
command: publish
- gh_release

check_for_github_action:
parameters:
platform:
Expand Down Expand Up @@ -271,7 +271,7 @@ commands:
type: executor
rust_channel:
type: enum
enum: ["stable", "nightly"]
enum: [ "stable", "nightly" ]
steps:
- when:
condition:
Expand All @@ -296,13 +296,6 @@ commands:
- run:
name: Skip homebrew update
command: echo "HOMEBREW_NO_AUTO_UPDATE=1" >> $BASH_ENV
- run:
name: Install curl
# we need to override the system curl because of outdated CA certificates
# on the base macos image
command: |
brew install curl
echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> $BASH_ENV
- run:
name: Install CMake
command: |
Expand Down Expand Up @@ -385,7 +378,7 @@ commands:
parameters:
rust_channel:
type: enum
enum: ["stable", "nightly"]
enum: [ "stable", "nightly" ]
platform:
type: executor
steps:
Expand Down Expand Up @@ -433,7 +426,7 @@ commands:
parameters:
command:
type: enum
enum: [lint, test, publish, package, dist]
enum: [ lint, test, publish, package, dist ]
options:
type: string
default: ""
Expand Down

0 comments on commit 6646cc7

Please sign in to comment.