Skip to content

Commit

Permalink
Update rust version for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MightOfOaks committed Dec 12, 2023
1 parent 469e76c commit 177bf66
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ workflows:
jobs:
contract_sg721:
docker:
- image: rust:1.64.0
- image: rust:1.65.0
working_directory: ~/project/contracts/sg721
steps:
- checkout:
Expand All @@ -34,7 +34,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-sg721-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}
- cargocache-sg721-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
Expand All @@ -56,10 +56,10 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-sg721-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-sg721-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
contract_sg721_updatable:
docker:
- image: rust:1.64.0
- image: rust:1.65.0
working_directory: ~/project/contracts/sg721-updatable
steps:
- checkout:
Expand All @@ -69,7 +69,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-sg721-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}
- cargocache-sg721-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
Expand All @@ -91,11 +91,11 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-sg721-updatable-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-sg721-updatable-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

contract_minter:
docker:
- image: rust:1.64.0
- image: rust:1.65.0
working_directory: ~/project/contracts/minter
steps:
- checkout:
Expand All @@ -105,7 +105,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-minter-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}
- cargocache-minter-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
Expand All @@ -127,11 +127,11 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-minter-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-minter-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

contract_whitelist:
docker:
- image: rust:1.64.0
- image: rust:1.65.0
working_directory: ~/project/contracts/whitelist
steps:
- checkout:
Expand All @@ -141,7 +141,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-whitelist-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}
- cargocache-whitelist-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
Expand All @@ -163,11 +163,11 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-whitelist-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-whitelist-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

contract_royalty_group:
docker:
- image: rust:1.64.0
- image: rust:1.65.0
working_directory: ~/project/contracts/royalty-group
steps:
- checkout:
Expand All @@ -177,7 +177,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-royalty-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}
- cargocache-royalty-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
Expand All @@ -199,11 +199,11 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-royalty-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-royalty-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

package_sg_std:
docker:
- image: rust:1.64.0
- image: rust:1.65.0
working_directory: ~/project/package/sg-std
steps:
- checkout:
Expand All @@ -213,7 +213,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-sg-std-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}
- cargocache-sg-std-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
Expand All @@ -223,11 +223,11 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-sg-std-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-sg-std-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

package_sg_utils:
docker:
- image: rust:1.64.0
- image: rust:1.65.0
working_directory: ~/project/package/sg-utils
steps:
- checkout:
Expand All @@ -237,7 +237,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-sg-utils-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}
- cargocache-sg-utils-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
Expand All @@ -247,19 +247,19 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-sg-utils-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-sg-utils-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

lint:
docker:
- image: rust:1.64.0
- image: rust:1.65.0
steps:
- checkout
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version; rustup target list --installed
- restore_cache:
keys:
- cargocache-v2-lint-rust:1.64.0-{{ checksum "Cargo.lock" }}
- cargocache-v2-lint-rust:1.65.0-{{ checksum "Cargo.lock" }}
- run:
name: Add rustfmt component
command: rustup component add rustfmt
Expand All @@ -278,15 +278,15 @@ jobs:
- target/debug/.fingerprint
- target/debug/build
- target/debug/deps
key: cargocache-v2-lint-rust:1.64.0-{{ checksum "Cargo.lock" }}
key: cargocache-v2-lint-rust:1.65.0-{{ checksum "Cargo.lock" }}

# This runs one time on the top level to ensure all contracts compile properly into wasm.
# We don't run the wasm build per contract build, and then reuse a lot of the same dependencies, so this speeds up CI time
# for all the other tests.
# We also sanity-check the resultant wasm files.
wasm-build:
docker:
- image: rust:1.64.0
- image: rust:1.65.0
steps:
- checkout:
path: ~/project
Expand All @@ -295,7 +295,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-wasm-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}
- cargocache-wasm-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Add wasm32 target
command: rustup target add wasm32-unknown-unknown
Expand All @@ -315,7 +315,7 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-wasm-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-wasm-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Check wasm contracts
command: |
Expand Down

0 comments on commit 177bf66

Please sign in to comment.