Bump MSRV in ci workflow #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: 'Continuous Integration' | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
test: | |
name: 'Cargo Test' | |
runs-on: 'ubuntu-latest' | |
strategy: | |
matrix: | |
toolchain-version: | |
- 'stable' | |
- '1.74.1' # 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 |