-
-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (39 loc) · 1.06 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build
on:
push:
branches:
- "*"
pull_request:
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- stable
- beta
- nightly
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.version }}
override: true
components: rustfmt
- name: build
run: |
cargo check --no-default-features
- name: test
run: |
cargo test --features=intel-mkl
- name: check formatting
run: cargo fmt -- --check
- name: code-coverage
run: |
cargo install cargo-tarpaulin --force --git https://github.com/xd009642/tarpaulin --branch develop
cargo tarpaulin --features=intel-mkl --force-clean --coveralls ${{ secrets.COVERALLS_TOKEN }}
if: matrix.target == 'x86_64-unknown-linux-gnu' && matrix.version == 'nightly'