Skip to content

Commit

Permalink
Add basic github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcyrd committed Aug 24, 2021
1 parent 7cf19ae commit 0e4e146
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Rust

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

jobs:
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

# clippy:
# name: clippy
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# override: true
# components: clippy
# - uses: actions-rs/cargo@v1
# with:
# command: clippy
# args: --workspace --all-targets -- --deny warnings
#
# fmt:
# name: fmt
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Run cargo fmt
# run: cargo fmt -- --check

0 comments on commit 0e4e146

Please sign in to comment.