Skip to content

Commit

Permalink
Merge pull request #29 from gear-foundation/tm/add-vmt-service
Browse files Browse the repository at this point in the history
Adding vmt service
  • Loading branch information
MedovTimur authored Oct 22, 2024
2 parents a7864f9 + 9fe149f commit bc4c59f
Show file tree
Hide file tree
Showing 23 changed files with 10,611 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,32 @@ jobs:

- name: Run Clippy
run: cargo clippy -r --manifest-path vnft-service/Cargo.toml -- -D warnings
vmt-service:
name: VmtService
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true

- name: Install Clippy
run: rustup component add clippy

- name: Install Rustfmt
run: rustup component add rustfmt

- name: Check formatting
run: cargo fmt --all --manifest-path vmt-service/Cargo.toml -- --check

- name: Run Clippy
run: cargo clippy -r --manifest-path vmt-service/Cargo.toml -- -D warnings

extend-vft:
needs: [vft-service]
Expand Down Expand Up @@ -133,4 +159,41 @@ jobs:
- name: Run tests
run: cargo test -r --manifest-path extended-vnft/Cargo.toml -- --ignored


extend-vmt:
needs: [vmt-service]
name: ExtendVmt
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true

- name: Install Clippy
run: rustup component add clippy

- name: Install Rustfmt
run: rustup component add rustfmt

- name: Check formatting
run: cargo fmt --all --manifest-path extended-vmt/Cargo.toml -- --check

- name: Run Clippy
run: cargo clippy -r --manifest-path extended-vmt/Cargo.toml -- -D warnings

- name: Prepare environment
run: |
mkdir -p extended-vmt/target/tmp
curl -L https://get.gear.rs/gear-v1.5.0-x86_64-unknown-linux-gnu.tar.xz -o - | tar xJ -C extended-vmt/target/tmp
- name: Run tests
run: cargo test -r --manifest-path extended-vmt/Cargo.toml -- --ignored


4 changes: 4 additions & 0 deletions extended-vmt/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/target
./wasm/.binpath
./wasm/.DS_Store
/.DS_Store
Loading

0 comments on commit bc4c59f

Please sign in to comment.