Skip to content

Merge pull request #4 from alexrudy/header-access-refactor #31

Merge pull request #4 from alexrudy/header-access-refactor

Merge pull request #4 from alexrudy/header-access-refactor #31

Workflow file for this run

on:
pull_request:
branches: [main]
push:
branches: [main]
release:
types: [published]
name: CI
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --release
test:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run cargo clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -D warnings
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: cargo doc
env:
RUSTDOCFLAGS: "-Dwarnings"
uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps