Skip to content

rustls-pemfile

rustls-pemfile #126

Workflow file for this run

on: [push, pull_request, merge_group]
name: rustls-pemfile
jobs:
rustfmt:
runs-on: ubuntu-20.04
steps:
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: actions/checkout@v4
- run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-20.04
steps:
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: actions/checkout@v4
- run: cargo clippy --all-features --all-targets
rustdoc:
runs-on: ubuntu-20.04
steps:
- uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v4
- run: cargo doc --all-features
build:
name: "Build and test"
runs-on: ${{ matrix.os }}
strategy:
matrix:
# test a bunch of toolchains on ubuntu
rust:
- stable
- beta
- nightly
os: [ubuntu-20.04]
# but only stable on macos/windows (slower platforms)
include:
- os: macos-latest
rust: stable
- os: windows-latest
rust: stable
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install ${{ matrix.rust }} toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: x86_64-unknown-none
- name: cargo test (debug)
run: cargo test
env:
RUST_BACKTRACE: 1
RUSTFLAGS: "-D warnings"
- name: cargo test (release)
run: cargo test --release
env:
RUSTFLAGS: "-D warnings"
# this target does _not_ include the libstd crate in its sysroot
# it will catch unwanted usage of libstd in _dependencies_
- name: cargo build no-std mode
run: cargo build --no-default-features --target x86_64-unknown-none
env:
RUSTFLAGS: "-D warnings"