mirror of
https://github.com/achanda/ipnetwork.git
synced 2025-06-14 16:26:32 +00:00
33 lines
717 B
YAML
33 lines
717 B
YAML
name: Rust
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
rust: [stable, beta, nightly]
|
|
steps:
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
rust-version: ${{ matrix.rust }}
|
|
components: clippy, rustfmt
|
|
- uses: actions/checkout@master
|
|
with:
|
|
ref: ${{ github.ref }}
|
|
- name: Show current git branch
|
|
run: git branch
|
|
- name: Build
|
|
run: cargo build --verbose
|
|
- name: Run tests
|
|
run: cargo test --verbose --all-features
|
|
- name: Build docs
|
|
run: cargo doc --verbose
|
|
- name: Run clippy
|
|
run: cargo clippy --verbose --all-features
|