Skip to content

Commit

Permalink
Merge pull request #1 from aura-nw/cw4973
Browse files Browse the repository at this point in the history
Cw4973 frens
  • Loading branch information
alexishapiro authored May 21, 2024
2 parents e63a7bb + 05cb2f8 commit 0ffec4c
Show file tree
Hide file tree
Showing 85 changed files with 9,834 additions and 0 deletions.
74 changes: 74 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ workflows:
- contract_cw721_base
- contract_cw721_metadata_onchain
- contract_cw721_fixed_price
- contract_cw2981_royalties
- contract_cw4973
- package_cw721
- lint
- wasm-build
Expand Down Expand Up @@ -127,6 +129,78 @@ jobs:
- target
key: cargocache-cw721-fixed-price-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

contract_cw2981_royalties:
docker:
- image: rust:1.65.0
working_directory: ~/project/contracts/cw2981-royalties
steps:
- checkout:
path: ~/project
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-cw2981-royalties-rust:1.65.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
- run:
name: Ensure checked-in schemas are up-to-date
command: |
CHANGES_IN_REPO=$(git status --porcelain | grep -v '/schema/raw/' || true)
if [[ -n "$CHANGES_IN_REPO" ]]; then
echo "Repository is dirty. Showing 'git status' and 'git --no-pager diff' for debugging now:"
git status && git --no-pager diff
exit 1
fi
- save_cache:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-cw2981-royalties-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

contract_cw4973:
docker:
- image: rust:1.65.0
working_directory: ~/project/contracts/cw4973
steps:
- checkout:
path: ~/project
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-cw4973-rust:1.64.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
- run:
name: Ensure checked-in schemas are up-to-date
command: |
CHANGES_IN_REPO=$(git status --porcelain)
if [[ -n "$CHANGES_IN_REPO" ]]; then
echo "Repository is dirty. Showing 'git status' and 'git --no-pager diff' for debugging now:"
git status && git --no-pager diff
exit 1
fi
- save_cache:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-cw4973-rust:1.64.0-{{ checksum "~/project/Cargo.lock" }}

package_cw721:
docker:
- image: rust:1.65.0
Expand Down
37 changes: 37 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ incremental = false
codegen-units = 1
incremental = false

[profile.release.package.cw4973]
codegen-units = 1
incremental = false

[profile.release]
rpath = false
lto = true
Expand Down
Loading

0 comments on commit 0ffec4c

Please sign in to comment.