Skip to content

Commit

Permalink
upd github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kroist committed Feb 12, 2024
1 parent a3bafe2 commit 2a0011d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
37 changes: 26 additions & 11 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,39 +18,50 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust toolchain
working-directory: legacy-shielder
uses: actions-rs/toolchain@v1

- name: Install WASM target
working-directory: legacy-shielder
run: rustup target add wasm32-unknown-unknown

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

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

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


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

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

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


- name: Run format check for `shielder/public_token`
run: cd legacy-shielder/public_token/ && cargo fmt --all --check
working-directory: legacy-shielder
run: cd 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
working-directory: legacy-shielder
run: cd 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
working-directory: legacy-shielder
run: cd public_token/ && cargo test

build-contracts:
runs-on: [self-hosted, Linux, X64, large]
Expand All @@ -61,24 +72,28 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust toolchain
working-directory: legacy-shielder
uses: actions-rs/toolchain@v1

- name: Install WASM target
working-directory: legacy-shielder
run: rustup target add wasm32-unknown-unknown


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

0 comments on commit 2a0011d

Please sign in to comment.