Back to original content. #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: checks | |
| on: [ push ] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.81.0 | |
| components: clippy, rustfmt | |
| - run: cargo fmt -- --check | |
| - run: cargo clippy --workspace --all-targets -- -D warnings | |
| build-workspace: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.81.0 | |
| - run: cargo update | |
| - run: cargo build --workspace | |
| build-cw-utils: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.81.0 | |
| - run: cargo build -p cw-utils --locked | |
| build-cw2: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.81.0 | |
| - run: cargo build -p cw2 --locked | |
| build-cw-controllers: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.81.0 | |
| - run: cargo build -p cw-controllers --locked | |
| test-workspace: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.81.0 | |
| - run: cargo update | |
| - run: cargo test --workspace | |
| test-cw-utils: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.81.0 | |
| - run: cargo test -p cw-utils --locked | |
| test-cw2: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.81.0 | |
| - run: cargo test -p cw2 --locked | |
| test-cw-controllers: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.81.0 | |
| - run: cargo test -p cw-controllers --locked | |
| wasm-cw-utils: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.81.0 | |
| target: wasm32-unknown-unknown | |
| - run: cargo build -p cw-utils --release --target wasm32-unknown-unknown | |
| wasm-cw2: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.81.0 | |
| target: wasm32-unknown-unknown | |
| - run: cargo build -p cw2 --release --target wasm32-unknown-unknown | |
| wasm-cw-controllers: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.81.0 | |
| target: wasm32-unknown-unknown | |
| - run: cargo build -p cw-controllers --release --target wasm32-unknown-unknown |