Skip to content

Commit

Permalink
Update dependencies to v7.0.0 (#28)
Browse files Browse the repository at this point in the history
* Update to v7.0.0

* Update test runtime to v7.0.0

* Update version

* Update polymesh-api version

* Add features

* Add default-features

* Update cargo lock

* Update CI Pipeline. (#30)

---------

Co-authored-by: Robert Gabriel Jakabosky <[email protected]>
  • Loading branch information
HenriqueNogara and Neopallium authored Nov 6, 2024
1 parent ef884e0 commit acdf9c0
Show file tree
Hide file tree
Showing 18 changed files with 1,727 additions and 1,639 deletions.
18 changes: 9 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ commands:
command: rustc --version > rust.version
- restore_cache:
name: Restore sccache cache
key: sccache-cache-stable-v2-{{ checksum "./rust.version" }}-{{ checksum "./Cargo.lock" }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}
key: sccache-cache-stable-v2-{{ checksum "./rust.version" }}-{{ checksum "./Cargo.lock" }}-{{ checksum "./integration/Cargo.lock" }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}
- run:
name: Show cache size
command: /usr/local/cargo/bin/sccache -s
Expand All @@ -32,7 +32,7 @@ commands:
# Of course, restore_cache will not find this exact key,
# but it will fall back to the closest key (aka the most recent).
# See https://discuss.circleci.com/t/add-mechanism-to-update-existing-cache-key/9014/13
key: sccache-cache-stable-v2-{{ checksum "./rust.version" }}-{{ checksum "./Cargo.lock" }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ epoch }}
key: sccache-cache-stable-v2-{{ checksum "./rust.version" }}-{{ checksum "./Cargo.lock" }}-{{ checksum "./integration/Cargo.lock" }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ epoch }}
paths:
- "/usr/local/cargo"
- "~/.cache/sccache"
Expand Down Expand Up @@ -209,13 +209,10 @@ jobs:
- image: polymeshassociation/rust:debian-nightly-2023-12-11
resource_class: medium+
environment:
VERBOSE: "1"
POLYMESH_URL: "ws://localhost:9944"
DATABASE_URL: "accounts.db"
RUSTFLAGS: -D warnings
- VERBOSE: "1"
- RUSTFLAGS: -D warnings
steps:
- checkout
- restore-sccache-cache
- attach_workspace:
at: ./target/release
- run:
Expand All @@ -229,12 +226,15 @@ jobs:
name: Reset accounts db
command: ./reset_db.sh
working_directory: ./integration
- run:
name: Clear polymesh-api to force re-compile (chain metadata might have changed).
command: cargo clean -p polymesh-api
working_directory: ./integration
- run:
name: Run polymesh-api integration tests.
command: cargo test --locked
command: cargo nextest run --locked
working_directory: ./integration
no_output_timeout: 30m
- save-sccache-cache
clippy:
docker:
- image: polymeshassociation/rust:debian-nightly-2023-12-11
Expand Down
Loading

0 comments on commit acdf9c0

Please sign in to comment.