Skip to content

update sys::log

update sys::log #565

Workflow file for this run

permissions:
contents: read
# runs on push to the main branch, and PRs
on:
push:
branches: [main]
pull_request:
name: check
jobs:
# 1. format
fmt:
name: "stable / fmt"
runs-on: ubuntu-latest
steps:
- name: "checkout"
uses: actions/checkout@v4
with:
submodules: true
- name: "Install stable"
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: "./utils/rustfmt check all exclude"
run: ./utils/rustfmt check all exclude
# 2. clippy lints
clippy:
name: "${{ matrix.toolchain }} / clippy"
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
strategy:
fail-fast: false
matrix:
toolchain: [stable]
# toolchain: [stable, beta]
steps:
- name: "checkout"
uses: actions/checkout@v4
with:
submodules: true
- name: "Install ${{ matrix.toolchain }}"
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: clippy
- name: "cargo clippy -F all,std,unsafe"
run: cargo clippy -F all,std,unsafe
- name: "cargo clippy -F all,safe"
run: cargo clippy -F all,safe
# 3. documentation
doc:
name: "nightly docs"
runs-on: ubuntu-latest
steps:
- name: "checkout"
uses: actions/checkout@v4
with:
submodules: true
- name: "Install libraries via APT"
run: |
sudo apt update
sudo apt install -y libasound2-dev
- name: "Install nightly"
uses: dtolnay/rust-toolchain@nightly
- name: "cargo +nightly doc -F _docsrs"
run: cargo doc -F _docsrs
env:
RUSTDOCFLAGS: --cfg _docsrs
# 4. minimum supported Rust version
msrv:
name: "ubuntu / ${{ matrix.msrv }}"
runs-on: ubuntu-latest
# we use a matrix here just because env can't be used in job names
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
strategy:
matrix:
msrv: [1.84.0] # sync with ../../{README.md, Cargo.toml}
steps:
- name: "checkout"
uses: actions/checkout@v4
with:
submodules: true
- name: "Install ${{ matrix.msrv }}"
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.msrv }}
- name: "cargo +${{ matrix.msrv }} check -F all,std,unsafe"
run: cargo check -F all,std,unsafe
- name: "cargo +${{ matrix.msrv }} check -F all,safe"
run: cargo check -F all,safe