imgurs/.github/workflows/build.yml

56 lines
1.0 KiB
YAML
Raw Normal View History

2022-01-22 22:02:05 +00:00
name: Rust
on:
push:
branches:
- main
paths-ignore:
- '*.md'
2022-01-22 22:02:05 +00:00
workflow_dispatch:
2022-01-22 22:02:05 +00:00
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable, nightly]
name: ${{ matrix.rust }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
2022-03-02 21:17:52 +00:00
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
2022-08-24 13:44:10 +00:00
args: --all
2022-05-18 17:48:39 +00:00
- name: cargo test
uses: actions-rs/cargo@v1
with:
2022-05-18 17:55:10 +00:00
command: test
args: --all-features
2022-05-18 17:48:39 +00:00
- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
2022-05-18 18:00:49 +00:00
args: -- -D warnings --no-deps