Skip to content

Commit

Permalink
Upgraded dependencies (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszDepta authored Aug 6, 2024
1 parent 815397f commit 25bc03b
Show file tree
Hide file tree
Showing 4 changed files with 488 additions and 162 deletions.
38 changes: 21 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ workflows:
jobs:
build_and_test:
docker:
- image: rust:1.70
- image: rust:1.75
working_directory: ~/project
steps:
- checkout
Expand All @@ -42,8 +42,8 @@ jobs:
command: cargo update
- restore_cache:
keys:
- cargocache-v2-multi-test:1.70-{{ checksum "Cargo.lock" }}
- cargocache-v2-multi-test:1.70-
- cargocache-v2-multi-test:1.75-{{ checksum "Cargo.lock" }}
- cargocache-v2-multi-test:1.75-
- run:
name: Build library for native target
command: cargo build --locked
Expand All @@ -54,12 +54,12 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-v2-multi-test:1.70-{{ checksum "Cargo.lock" }}
key: cargocache-v2-multi-test:1.75-{{ checksum "Cargo.lock" }}

build_minimal:
docker:
- image: rustlang/rust:nightly
working_directory: ~/project/
working_directory: ~/project
steps:
- checkout
- run:
Expand All @@ -68,9 +68,13 @@ jobs:
- run:
name: Remove Cargo.lock
command: rm Cargo.lock
# Remove the following command after dependencies in crates ahash and num-bigint are upgraded!
- run:
name: Temporarily update problematic crates
command: cargo update -p ahash && cargo update -p num-bigint
- restore_cache:
keys:
- cargocache-v2-multi-test:1.70-minimal-{{ checksum "Cargo.toml" }}
- cargocache-v2-multi-test:1.75-minimal-{{ checksum "Cargo.toml" }}
- run:
name: Build library for native target
command: cargo build -Zminimal-versions --all-features
Expand All @@ -81,12 +85,12 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-v2-multi-test:1.70-minimal-{{ checksum "Cargo.toml" }}
key: cargocache-v2-multi-test:1.75-minimal-{{ checksum "Cargo.toml" }}

build_maximal:
docker:
- image: rust:1.70
working_directory: ~/project/
- image: rust:1.75
working_directory: ~/project
steps:
- checkout
- run:
Expand All @@ -97,7 +101,7 @@ jobs:
command: cargo update
- restore_cache:
keys:
- cargocache-v2-multi-test:1.70-{{ checksum "Cargo.lock" }}
- cargocache-v2-multi-test:1.75-{{ checksum "Cargo.lock" }}
- run:
name: Build library for native target
command: cargo build --locked --all-features
Expand All @@ -108,11 +112,11 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-v2-multi-test:1.70-{{ checksum "Cargo.lock" }}
key: cargocache-v2-multi-test:1.75-{{ checksum "Cargo.lock" }}

lint:
docker:
- image: rust:1.70
- image: rust:1.75
steps:
- checkout
- run:
Expand All @@ -123,8 +127,8 @@ jobs:
command: cargo update
- restore_cache:
keys:
- cargocache-v2-lint-rust:1.70-{{ checksum "Cargo.lock" }}
- cargocache-v2-lint-rust:1.70-
- cargocache-v2-lint-rust:1.75-{{ checksum "Cargo.lock" }}
- cargocache-v2-lint-rust:1.75-
- run:
name: Add rustfmt component
command: rustup component add rustfmt
Expand All @@ -143,19 +147,19 @@ jobs:
- target/debug/.fingerprint
- target/debug/build
- target/debug/deps
key: cargocache-v2-lint-rust:1.70-{{ checksum "Cargo.lock" }}
key: cargocache-v2-lint-rust:1.75-{{ checksum "Cargo.lock" }}

coverage:
# https://circleci.com/developer/images?imageType=machine
machine:
image: ubuntu-2204:2024.01.1
image: ubuntu-2404:2024.05.1
steps:
- checkout
- run:
name: Run tests with coverage
command: |
mkdir -p cov
docker run --security-opt seccomp=unconfined -v "${PWD}:/volume" xd009642/tarpaulin:0.27.1 \
docker run --security-opt seccomp=unconfined -v "${PWD}:/volume" xd009642/tarpaulin:0.31.0 \
sh -c "cargo tarpaulin --workspace --all-features --force-clean --engine llvm --out xml --output-dir cov"
- codecov/upload:
file: cov/cobertura.xml
Loading

0 comments on commit 25bc03b

Please sign in to comment.