update fluid transfer spec #1122
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- "**" | |
- "!dependabot/**" | |
tags: ["**"] | |
pull_request: | |
branches: ["**"] | |
jobs: | |
fmt: | |
name: rustfmt check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2021-11-17 | |
profile: default | |
default: true | |
components: rustfmt | |
- run: cargo fmt --all -- --check | |
lint: | |
name: clippy lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- nightly-2021-11-17 | |
stability: | |
- "" | |
- "--release" | |
steps: | |
- uses: actions/checkout@v2 | |
- run: rm rust-toolchain | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{matrix.toolchain}} | |
profile: default | |
default: true | |
components: clippy | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
/home/runner/.cargo | |
**/target | |
key: ${{ matrix.toolchain }} | |
- run: test -f ~/.cargo/bin/just || cargo install just | |
- name: cargo clippy | |
uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{secrets.GITHUB_TOKEN}} | |
args: --all ${{matrix.stability}} | |
name: debug${{matrix.stability}} | |
test: | |
name: unit tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- nightly-2021-11-17 | |
stability: | |
- "" | |
- "--release" | |
steps: | |
- uses: actions/checkout@v2 | |
- run: rm rust-toolchain | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{matrix.toolchain}} | |
profile: default | |
default: true | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
/home/runner/.cargo | |
**/target | |
key: ${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock') }} | |
- name: cargo test | |
if: ${{ matrix.stability != '' }} | |
run: "cargo test --all ${{matrix.stability}}" | |
- name: cargo test | |
if: ${{ matrix.stability == '' }} | |
run: "cargo test --no-fail-fast --all" | |
env: | |
CARGO_INCREMENTAL: "0" | |
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off" | |
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off" | |
- id: coverage | |
name: coverage report | |
if: ${{ matrix.stability == '' }} | |
uses: actions-rs/grcov@v0.1 | |
- name: upload to codecov | |
if: ${{ matrix.stability == '' }} | |
uses: codecov/codecov-action@v2.1.0 | |
with: | |
files: ${{ steps.coverage.outputs.report }} | |
build: | |
name: test release build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2021-11-17 | |
profile: default | |
default: true | |
target: wasm32-unknown-unknown | |
- name: Cache cargo tools | |
uses: actions/cache@v2 | |
with: | |
path: | | |
/home/runner/.cargo | |
**/target | |
key: trunk-just-2021-11-17 | |
- run: test -f ~/.cargo/bin/just || cargo install trunk just | |
- name: Build scenario files | |
run: just client-scenarios | |
- name: Build web client | |
run: just client-build /$(echo ${{github.ref}} | cut -d/ -f3) | |
build-dev: | |
name: test dev build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2021-11-17 | |
profile: default | |
default: true | |
target: wasm32-unknown-unknown | |
- name: Cache cargo tools | |
uses: actions/cache@v2 | |
with: | |
path: | | |
/home/runner/.cargo | |
**/target | |
key: trunk-just-2021-11-17 | |
- run: test -f ~/.cargo/bin/just || cargo install trunk just | |
- name: Build scenario files | |
run: just client-scenarios-dev | |
- name: Build web client | |
run: just client-build-dev |