Skip to content

Bump EmbarkStudios/cargo-deny-action from 1 to 2 #95

Bump EmbarkStudios/cargo-deny-action from 1 to 2

Bump EmbarkStudios/cargo-deny-action from 1 to 2 #95

Workflow file for this run

name: CI
on:
push:
# Don't build tags; that's redundant with pushes to main normally.
tags-ignore: "*"
# Only build main, for all other branches rely on pull requests. This
# avoids duplicate builds for pull requests.
branches: main
# Don't build for trivial changes
paths-ignore:
- "*.md"
- "LICENSE"
pull_request:
jobs:
cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v2
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust:
# Our minimal supported version
- "1.64.0"
# The standard Rust version
- stable
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: clippy,rustfmt
- run: cargo test --locked
# Run tests with fixed hostname on Unix systems
- run: sudo hostname hostname-for-testing
if: "!contains(matrix.os, 'windows')"
- run: cargo test --locked -- --ignored
if: "!contains(matrix.os, 'windows')"
- run: cargo clippy --locked --all-targets
if: matrix.rust == 'stable'
- run: cargo fmt --check
if: matrix.rust == 'stable'
- run: cargo doc
if: "!contains(matrix.os, 'windows')"