Skip to content

Commit

Permalink
Merge pull request #10 from noislabs/randdrop
Browse files Browse the repository at this point in the history
init-randdrop
  • Loading branch information
kaisbaccour authored Jul 3, 2023
2 parents 2415a09 + addf464 commit f107027
Show file tree
Hide file tree
Showing 14 changed files with 1,643 additions and 122 deletions.
28 changes: 28 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ workflows:
test:
jobs:
- contract_double_dice_roll
- contract_randdrop
- contract_randdrop-global
- lint
- wasm-build
Expand Down Expand Up @@ -50,6 +51,32 @@ jobs:
- /usr/local/cargo/registry
- target
key: cargocache-double-dice-roll-rust:1.63.0-{{ checksum "~/project/Cargo.lock" }}
contract_randdrop:
docker:
- image: rust:1.63.0
working_directory: ~/project/contracts/randdrop
steps:
- checkout:
path: ~/project
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-randdrop-rust:1.63.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
RUST_BACKTRACE: 1
command: cargo unit-test --locked
- run:
name: Build and run schema generator
command: cargo schema --locked
- save_cache:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-randdrop-rust:1.63.0-{{ checksum "~/project/Cargo.lock" }}

contract_randdrop-global:
docker:
Expand Down Expand Up @@ -146,6 +173,7 @@ jobs:
root: ./target/wasm32-unknown-unknown/release
paths:
- double_dice_roll.wasm
- randdrop.wasm
- randdrop_global.wasm

# This job roughly follows the instructions from https://circleci.com/blog/publishing-to-github-releases-via-circleci/
Expand Down
Loading

0 comments on commit f107027

Please sign in to comment.