Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 13 additions & 30 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push]

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"

jobs:
build:
Expand All @@ -16,41 +17,24 @@ jobs:
submodules: recursive

- name: Setup Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
target: wasm32-wasi
components: rustfmt, clippy

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features

- name: Documentation
uses: actions-rs/cargo@v1
- name: Run cargo-audit binary crate
uses: rustsec/audit-check@v1.4.1
with:
command: doc
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install cargo-audit binary crate
uses: actions-rs/install@v0.1
with:
crate: cargo-audit
version: latest
use-tool-cache: true
- name: Build
run: cargo build --release --all-features

- name: Annotate commit with clippy warnings
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
- name: Documentation
run: cargo doc

- name: Security audit
uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Clippy
run: cargo clippy --all-targets --all-features

release:
runs-on: ubuntu-latest
Expand All @@ -63,11 +47,10 @@ jobs:
submodules: recursive

- name: Setup Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
target: wasm32-wasi
components: rustfmt, clippy

- name: Run Release PR
uses: MarcoIeni/release-plz-action@v0.5
Expand Down