-
Notifications
You must be signed in to change notification settings - Fork 176
66 lines (53 loc) · 1.82 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: CI
on:
push:
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.continue-on-error || false }}
strategy:
matrix:
name:
- stable
- beta
- nightly
- "feat: no default features"
- "feat: all features"
- "feat: nom only"
include:
- name: beta
rust: beta
- name: nightly
rust: nightly
continue-on-error: true
- name: "feat: all features"
features: "--all-features"
- name: "feat: nom only"
features: "--no-default-features --features nom_parser"
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust || 'stable' }}
- name: Build
run: cargo build --verbose ${{ matrix.features }}
- name: Run tests
run: cargo test --verbose ${{ matrix.features }} -- --test-threads=1
pdfutil:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
- name: Build
run: cargo build --verbose --manifest-path pdfutil/Cargo.toml
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
- name: clippy for lopdf
run: cargo clippy
- name: clippy for pdfutil
run: cargo clippy --manifest-path pdfutil/Cargo.toml