Skip to content

Commit

Permalink
Merge pull request #36 from public-awesome/shanev/update-ci-3
Browse files Browse the repository at this point in the history
Update CI for new packages
  • Loading branch information
shanev authored Feb 24, 2022
2 parents a964d20 + 9d45411 commit e2ae69c
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ workflows:
- contract_minter
- contract_whitelist
- contract_royalty_group
- package_sg_std
- package_sg_utils
- lint
- wasm-build
deploy:
Expand Down Expand Up @@ -163,6 +165,54 @@ jobs:
- target
key: cargocache-royalty-rust:1.58.0-{{ checksum "~/project/Cargo.lock" }}

package_sg_std:
docker:
- image: rust:1.58.0
working_directory: ~/project/package/sg-std
steps:
- checkout:
path: ~/project
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-sg-std-rust:1.58.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
RUST_BACKTRACE: 1
command: cargo unit-test --locked
- save_cache:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-sg-std-rust:1.58.0-{{ checksum "~/project/Cargo.lock" }}

package_sg_utils:
docker:
- image: rust:1.58.0
working_directory: ~/project/package/sg-utils
steps:
- checkout:
path: ~/project
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-sg-utils-rust:1.58.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
RUST_BACKTRACE: 1
command: cargo unit-test --locked
- save_cache:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-sg-utils-rust:1.58.0-{{ checksum "~/project/Cargo.lock" }}

lint:
docker:
- image: rust:1.58.0
Expand Down

0 comments on commit e2ae69c

Please sign in to comment.