Skip to content

Commit ae16e0c

Browse files
committed
Use new build workflow
1 parent 11f0682 commit ae16e0c

File tree

2 files changed

+64
-64
lines changed

2 files changed

+64
-64
lines changed

.github/workflows/build.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Based on https://github.com/actions-rs/meta/blob/master/recipes/matrix.md
2+
3+
on: push
4+
5+
name: Build
6+
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-latest
10+
continue-on-error: ${{ matrix.experimental }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
rust:
15+
- stable
16+
- beta
17+
#- 1.51.0 # MSRV
18+
experimental: [false]
19+
include:
20+
- rust: nightly
21+
experimental: true
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
26+
- uses: actions-rs/toolchain@v1
27+
with:
28+
profile: minimal
29+
toolchain: ${{ matrix.rust }}
30+
override: true
31+
components: clippy
32+
33+
- uses: actions-rs/cargo@v1
34+
with:
35+
command: build
36+
37+
- uses: actions-rs/cargo@v1
38+
with:
39+
command: test
40+
41+
- uses: actions-rs/cargo@v1
42+
with:
43+
command: clippy
44+
args: -- -D warnings
45+
46+
coverage-codecov:
47+
needs: tests
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v2
51+
52+
- uses: actions-rs/toolchain@v1
53+
with:
54+
toolchain: stable
55+
override: true
56+
57+
- name: Run tarpaulin for codecov.io
58+
uses: actions-rs/[email protected]
59+
with:
60+
version: '0.18.0'
61+
args: '--ciserver github-ci --all-features --ignore-tests'
62+
63+
- name: Upload to codecov.io
64+
uses: codecov/codecov-action@v2

.github/workflows/rust.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)