Skip to content

Commit a5f47ab

Browse files
author
DvirDukhan
committed
patch toml before restoring cache
1 parent 583efc5 commit a5f47ab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,18 @@ commands:
111111
- install-prerequisites:
112112
redis_version: <<parameters.redis_version>>
113113
getredis_params: <<parameters.getredis_params>>
114+
- run:
115+
name: patch macos tests # Avoid AVX with Regex with CircleCI since virtualization layer doesn't support it. Use sed to replace the relevant entry in cargo.toml
116+
command: |
117+
if [[ $(uname -s) == Darwin ]]; then sed -i 's/regex = "1"/regex = { version = "1", features = ["perf", "unicode"] }/g' Cargo.toml; fi
118+
cat Cargo.toml
114119
- restore_cache:
115120
keys:
116121
- v3-dependencies-{{ arch }}-{{ checksum "Cargo.toml" }}
117122
- run:
118123
name: Check formatting
119124
shell: /bin/bash -l -eo pipefail
120125
command: make lint
121-
- run:
122-
name: patch macos tests # Avoid AVX with Regex with CircleCI since virtualization layer doesn't support it. Use sed to replace the relevant entry in cargo.toml
123-
command: |
124-
if [[ $(uname -s) == Darwin ]]; then sed -i 's/regex = "1"/regex = { version = "1", features = ["perf", "unicode"] }/g' Cargo.toml; fi
125-
cat Cargo.toml
126126
- run:
127127
name: Build debug
128128
shell: /bin/bash -l -eo pipefail

0 commit comments

Comments
 (0)