Skip to content

👥 Add CONTRIBUTING.md #34

👥 Add CONTRIBUTING.md

👥 Add CONTRIBUTING.md #34

Workflow file for this run

name: stylus
on: push
jobs:
check:
strategy:
fail-fast: true
name: Check contracts with Stylus
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rust-src
target: wasm32-unknown-unknown
id: rust
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Install Stylus CLI
run: |
cargo install --locked cargo-stylus || true
id: stylus
- name: Check project is valid
run: |
cargo stylus check
id: check