Skip to content

Commit

Permalink
ci: update GitHub Actions script
Browse files Browse the repository at this point in the history
  • Loading branch information
my4ng committed May 23, 2024
1 parent 4d3af35 commit 1a4cc2f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 18 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Rust

on: [push, workflow_dispatch, pull_request]

jobs:
check:
env:
RUSTFLAGS: "-D warnings"

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt

- name: Checks
run: |
cargo fmt --check
cargo clippy --all-targets
test-msrv:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/[email protected]

- name: Build with MSRV
run: cargo build --all-features
18 changes: 0 additions & 18 deletions .github/workflows/rust.yml

This file was deleted.

0 comments on commit 1a4cc2f

Please sign in to comment.