Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A0-3777: Add fundamental relations #44

Merged
merged 16 commits into from
Feb 19, 2024
65 changes: 8 additions & 57 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,74 +11,25 @@ concurrency:
cancel-in-progress: true

jobs:
rust-checks:
shielder-checks:
runs-on: [self-hosted, Linux, X64, large]
steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.76.0

- name: Install WASM target
run: rustup target add wasm32-unknown-unknown

- name: Run format check for `shielder/cli`
run: cd legacy-shielder/cli/ && cargo fmt --all --check
- name: Install cargo-contract
run: cargo install cargo-contract --version 4.0.0-rc.2

- name: Run clippy for `shielder/cli`
run: cd legacy-shielder/cli/ && cargo clippy --all-features -- --no-deps -D warnings

- name: Run tests for `shielder/cli`
run: cd legacy-shielder/cli/ && cargo test


- name: Run format check for `shielder/contract`
run: cd legacy-shielder/contract/ && cargo fmt --all --check

- name: Run clippy for `shielder/contract`
run: cd legacy-shielder/contract/ && cargo clippy --all-features -- --no-deps -D warnings
- name: Run checks for `shielder/contract`
run: cd shielder/ && make check-shielder

- name: Run tests for `shielder/contract`
run: cd legacy-shielder/contract/ && cargo test


- name: Run format check for `shielder/public_token`
run: cd legacy-shielder/public_token/ && cargo fmt --all --check

- name: Run clippy for `shielder/public_token`
run: cd legacy-shielder/public_token/ && cargo clippy --all-features -- --no-deps -D warnings

- name: Run tests for `shielder/public_token`
run: cd legacy-shielder/public_token/ && cargo test

build-contracts:
runs-on: [self-hosted, Linux, X64, large]
env:
DOCKER_IMAGE: "public.ecr.aws/p6e8q1z1/ink-dev:1.0.0"
steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1

- name: Install WASM target
run: rustup target add wasm32-unknown-unknown


- name: Build public token contract
run: |
docker run \
-v ${{ github.workspace }}:/code \
--platform linux/amd64 \
${{ env.DOCKER_IMAGE }} \
cargo contract build --manifest-path legacy-shielder/public_token/Cargo.toml

- name: Build shielder contract
run: |
docker run \
-v ${{ github.workspace }}:/code \
--platform linux/amd64 \
${{ env.DOCKER_IMAGE }} \
cargo contract build --manifest-path legacy-shielder/contract/Cargo.toml
run: cd shielder/ && make tests
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "shielder/PSP22"]
path = shielder/PSP22
url = https://github.com/Cardinal-Cryptography/PSP22.git
16 changes: 0 additions & 16 deletions legacy-shielder/Makefile

This file was deleted.

169 changes: 0 additions & 169 deletions legacy-shielder/README.md

This file was deleted.

Loading
Loading