Skip to content

Commit

Permalink
Resource Manager + Meter (#600)
Browse files Browse the repository at this point in the history
Resource Manager + Meter

Co-authored-by: Ignacio Duart <[email protected]>
  • Loading branch information
sanity and iduartgomez authored Aug 11, 2023
1 parent e26481b commit 79b62dc
Show file tree
Hide file tree
Showing 18 changed files with 1,108 additions and 558 deletions.
48 changes: 7 additions & 41 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,17 @@ jobs:

- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
override: "true"
default: "true"
targets: wasm32-unknown-unknown

- uses: Swatinem/rust-cache@v2

- name: Install stdlib packages
working-directory: apps/stdlib
run: npm run dev.package

- name: Add dependencies
run: |
rustup target add wasm32-unknown-unknown
- name: Build
run: |
cargo build --locked
Expand Down Expand Up @@ -79,24 +73,13 @@ jobs:

- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: wasm32-unknown-unknown

- uses: Swatinem/rust-cache@v2

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: "true"
default: "true"

- name: Add dependencies
run: |
rustup target add wasm32-unknown-unknown
rustup target add wasm32-wasi
- name: Build - locutus-stdlib
working-directory: crates/locutus-stdlib
run: cargo build --target ${{ matrix.targets }}
Expand All @@ -121,23 +104,12 @@ jobs:

- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
with:
toolchain: stable

- uses: Swatinem/rust-cache@v2

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
components: clippy
override: "true"
default: "true"

- name: Add dependencies
run: |
rustup target add wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2

- name: clippy
run: cargo clippy -- -D warnings
Expand All @@ -154,15 +126,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
components: rustfmt
override: "true"
default: "true"

- uses: Swatinem/rust-cache@v2

- name: Check code formatting
run: cargo fmt -- --check
Loading

0 comments on commit 79b62dc

Please sign in to comment.