Update dependencies again for 0.10 #1486
Workflow file for this run
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: CI checks | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Test on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- run: cargo fetch | |
- name: Build tests | |
run: cargo build --workspace --verbose --exclude rage --all-features --tests | |
- name: Run tests | |
run: cargo test --workspace --verbose --exclude rage --all-features | |
build: | |
name: Build target ${{ matrix.target }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: | |
- wasm32-wasi | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Add target | |
run: rustup target add ${{ matrix.target }} | |
- run: cargo fetch | |
- name: Build for target | |
working-directory: ./age | |
run: cargo build --verbose --no-default-features --target ${{ matrix.target }} | |
bitrot: | |
name: Bitrot | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install linux build dependencies | |
run: sudo apt update && sudo apt install libfuse-dev | |
- run: cargo check --all-targets --all-features | |
clippy: | |
name: Clippy (MSRV) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install linux build dependencies | |
run: sudo apt update && sudo apt install libfuse-dev | |
- name: Clippy check | |
uses: actions-rs/clippy-check@v1 | |
with: | |
name: Clippy (MSRV) | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --all-features --all-targets -- -D warnings | |
codecov: | |
name: Code coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
id: toolchain | |
- run: rustup override set ${{steps.toolchain.outputs.name}} | |
- name: Install linux build dependencies | |
run: sudo apt update && sudo apt install libfuse-dev | |
- name: Generate coverage report | |
uses: actions-rs/[email protected] | |
with: | |
version: '0.19.1' | |
args: --workspace --release --all-features --timeout 180 --out Xml | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
fail_ci_if_error: true | |
doc-links: | |
name: Intra-doc links | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: cargo fetch | |
# Requires #![deny(rustdoc::broken_intra_doc_links)] in crates. | |
- name: Check intra-doc links | |
run: cargo doc --all --exclude rage --all-features --document-private-items | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check formatting | |
run: cargo fmt --all -- --check |