forked from scalefactory/hcdl
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (59 loc) · 1.48 KB
/
ci.yaml
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
---
name: 'Continuous Integration'
on:
push:
branches:
- 'main'
jobs:
test:
name: 'Cargo Test'
runs-on: 'ubuntu-latest'
strategy:
matrix:
toolchain-version:
- 'stable'
- '1.75.0' # MSRV
steps:
- name: 'Checkout'
uses: 'actions/checkout@v3'
with:
fetch-depth: 1
- name: 'Target Cache'
uses: 'actions/cache@v3'
env:
cache-name: 'cargo-cache'
with:
key: "${{ env.cache-name }}-${{ matrix.toolchain-version }}-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}"
path: |
~/.cargo/git
~/.cargo/registry
target
- name: 'Install Toolchain'
uses: 'actions-rs/toolchain@v1'
with:
profile: 'minimal'
toolchain: "${{ matrix.toolchain-version }}"
override: true
- name: 'Run Default Feature Tests'
uses: 'actions-rs/cargo@v1'
with:
command: 'test'
- name: 'Run No Embedded GPG Key Feature Tests'
uses: 'actions-rs/cargo@v1'
with:
command: 'test'
args: '--no-default-features'
mandoc:
name: 'Lint Man Page'
runs-on: 'ubuntu-latest'
steps:
- name: 'Checkout'
uses: 'actions/checkout@v3'
with:
fetch-depth: 1
- name: 'Install mandoc'
run: |
sudo apt install mandoc
- name: 'Lint Man Page'
run: |
mandoc -T lint man/hcdl.1