Skip to content

Commit

Permalink
Actions: Added a CI work flow
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjj20 committed Nov 23, 2022
1 parent 4aec5d2 commit c39d0e0
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
on:
push:
branches: [ main, actions ]
pull_request:
branches: [ main ]

name: CI
env:
RUSTFLAGS: -D warnings
CARGO_TERM_COLOR: always

jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Lint (clippy)
run: cargo clippy --all-features --all-targets

build-rustdoc:
name: Build documentation
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Build rustdoc
run: cargo doc --all-features --workspace

build-test:
name: Build and Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build
- name: Test
run: cargo test

0 comments on commit c39d0e0

Please sign in to comment.