Skip to content

Commit 1d43455

Browse files
committed
bump rust version
1 parent ec7db28 commit 1d43455

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

.circleci/config.yml

+10-13
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,42 @@
11
restore_registry: &RESTORE_REGISTRY
22
restore_cache:
33
key: registry
4-
54
save_registry: &SAVE_REGISTRY
65
save_cache:
76
key: registry-{{ .BuildNum }}
87
paths:
9-
- /usr/local/cargo/registry/index
10-
8+
- /usr/local/cargo/registry/index
119
deps_key: &DEPS_KEY
12-
key: deps-1.19.0-{{ checksum "Cargo.lock" }}
13-
10+
key: deps-{{ checksum "~/rust-version" }}-{{ checksum "Cargo.lock" }}
1411
restore_deps: &RESTORE_DEPS
1512
restore_cache:
1613
<<: *DEPS_KEY
17-
1814
save_deps: &SAVE_DEPS
1915
save_cache:
2016
<<: *DEPS_KEY
2117
paths:
22-
- target
23-
- /usr/local/cargo/registry/cache
18+
- target
19+
- /usr/local/cargo/registry/cache
2420

2521
version: 2
2622
jobs:
2723
build:
2824
working_directory: ~/build
2925
docker:
30-
- image: rust:1.20.0
26+
- image: rust:1.21.0
3127
environment:
3228
RUSTFLAGS: -D warnings
3329
- image: sfackler/rust-postgres-test:3
3430
steps:
3531
- checkout
3632
- run: apt-get update
3733
- run: DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq
38-
- <<: *RESTORE_REGISTRY
34+
- *RESTORE_REGISTRY
3935
- run: cargo generate-lockfile
40-
- <<: *SAVE_REGISTRY
41-
- <<: *RESTORE_DEPS
36+
- *SAVE_REGISTRY
37+
- run: rustc --version > ~/rust-version
38+
- *RESTORE_DEPS
4239
- run: cargo test --all
4340
- run: cargo test --manifest-path=postgres/Cargo.toml --features "$(cargo read-manifest --manifest-path=postgres/Cargo.toml | jq -r '.features|keys|map(select(. != "with-security-framework" and . != "with-schannel"))|join(" ")')"
4441
- run: cargo test --manifest-path=tokio-postgres/Cargo.toml --all-features
45-
- <<: *SAVE_DEPS
42+
- *SAVE_DEPS

0 commit comments

Comments
 (0)