44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: Mixnet Contract
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
ci:
|
|
# since it's going to be compiled into wasm, there's absolutely
|
|
# no point in running CI on different OS-es
|
|
runs-on: ubuntu-latest
|
|
continue-on-error: ${{ matrix.rust == 'nightly' }}
|
|
strategy:
|
|
matrix:
|
|
rust: [ stable, beta, nightly ]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: ${{ matrix.rust }}
|
|
target: wasm32-unknown-unknown
|
|
override: true
|
|
components: rustfmt, clippy
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: build
|
|
args: --manifest-path contracts/mixnet/Cargo.toml --target wasm32-unknown-unknown
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --manifest-path contracts/mixnet/Cargo.toml
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: fmt
|
|
args: --manifest-path contracts/mixnet/Cargo.toml -- --check
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
if: ${{ matrix.rust != 'nightly' }}
|
|
with:
|
|
command: clippy
|
|
args: --manifest-path contracts/mixnet/Cargo.toml -- -D warnings |