siwe-oidc/.github/workflows/ci.yml

33 lines
782 B
YAML
Raw Normal View History

2021-12-20 11:48:29 -05:00
name: ci
on: push
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- cargo_target: "x86_64-unknown-linux-gnu"
- cargo_target: "wasm32-unknown-unknown"
2021-12-20 11:48:29 -05:00
steps:
- name: Clone repo
uses: actions/checkout@master
- name: Add targets
run: rustup target add wasm32-unknown-unknown
2021-12-20 11:48:29 -05:00
- name: Build
env:
CARGO_BUILD_TARGET: ${{ matrix.cargo_target }}
2021-12-20 11:48:29 -05:00
run: cargo build --verbose
- name: Clippy
env:
CARGO_BUILD_TARGET: ${{ matrix.cargo_target }}
2021-12-20 11:48:29 -05:00
run: RUSTFLAGS="-Dwarnings" cargo clippy
- name: Fmt
env:
CARGO_BUILD_TARGET: ${{ matrix.cargo_target }}
2021-12-20 11:48:29 -05:00
run: cargo fmt -- --check