Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRega committed Oct 29, 2022
1 parent d828e5f commit a278a43
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
name: Rust

on:
push:
branches: [ main ]
branches: [ "main" ]
pull_request:
branches: [ main ]
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
strategy:
fail-fast: true
matrix:
include:
- os: ubuntu-latest
- os: windows-latest
- os: macos-latest

runs-on: ubuntu-latest

name: rust-ci ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run check
run: cargo check --verbose
- name: Run clippy
run: cargo clippy --verbose

0 comments on commit a278a43

Please sign in to comment.