Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded dependencies #202

Merged
merged 10 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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