Skip to content

Merge pull request #13 from kiai-life/support-overflow-credits #25

Merge pull request #13 from kiai-life/support-overflow-credits

Merge pull request #13 from kiai-life/support-overflow-credits #25

Workflow file for this run

name: Rust
on:
push:
branches:
- master
tags:
- v*
pull_request:
paths:
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/rust.yml'
env:
CARGO_INCREMENTAL: 0
jobs:
rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/[email protected]
with:
toolchain: stable
components: clippy, rustfmt
override: true
- name: cache dependencies
uses: Swatinem/[email protected]
- name: install wasm-pack
run: |
wget "https://github.com/rustwasm/wasm-pack/releases/download/v0.10.2/wasm-pack-v0.10.2-x86_64-unknown-linux-musl.tar.gz"
tar zxvf wasm-pack-v0.10.2-x86_64-unknown-linux-musl.tar.gz
ls ./wasm-pack-v0.10.2-x86_64-unknown-linux-musl
install ./wasm-pack-v0.10.2-x86_64-unknown-linux-musl/wasm-pack /usr/local/bin/
wasm-pack --version
- name: reviewdog / clippy
uses: sksat/[email protected]
with:
reporter: github-pr-review
clippy_flags: --all-features
- name: unit test
uses: actions-rs/[email protected]
with:
command: test
- name: check format
uses: actions-rs/[email protected]
with:
command: fmt
args: --all -- --check
- name: wasm-pack
run: wasm-pack build --target web --dev