Skip to content

Commit

Permalink
Testing examples and benchmarks in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
svartalf committed Mar 2, 2020
1 parent c4f1661 commit fe15732
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
on: [push, pull_request]

name: Extra crates CI

jobs:
# Check `examples` and `benchmarks` crates separately
examples_and_benchmarks:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt,clippy
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: build
args: -p examples --all-targets
- uses: actions-rs/cargo@v1
with:
command: build
args: -p benchmarks --all-targets

0 comments on commit fe15732

Please sign in to comment.