build(deps): bump serde_json from 1.0.133 to 1.0.134 #80
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: Build | |
on: | |
schedule: | |
- cron: "0 0 1 * *" | |
push: | |
paths-ignore: | |
- changelog | |
branches-ignore: | |
- main | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
RUSTFLAGS: "-D warnings" | |
RUSTDOCFLAGS: '--deny warnings' | |
MINIMUM_SUPPORTED_RUST_VERSION: 1.80.1 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run cargo check | |
run: cargo check --all-features --locked --release --all | |
env: | |
CARGO_NET_GIT_FETCH_WITH_CLI: true | |
build: | |
name: Build w/o features | |
needs: check | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- beta | |
- nightly | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run cargo build | |
run: cargo build | |
build-for-targets: | |
name: Build for targets | |
needs: check | |
runs-on: ${{ matrix.platforms.os }} | |
continue-on-error: true | |
strategy: | |
matrix: | |
platforms: | |
- os: macOS-latest | |
target: aarch64-apple-darwin | |
features: "" | |
- os: macos-latest-large | |
target: x86_64-apple-darwin | |
features: "" | |
- os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
features: "" | |
- os: ubuntu-latest | |
target: aarch64-unknown-linux-gnu | |
features: "--no-default-features --features ssl-vendored" | |
- os: windows-latest | |
target: x86_64-pc-windows-gnu | |
features: "--no-default-features" | |
- os: windows-latest | |
target: x86_64-pc-windows-msvc | |
features: "--no-default-features --features ssl-vendored" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: houseabsolute/[email protected] | |
# if: (github.event.pull_request.base.ref == 'main' && matrix.platforms.os == 'macos-latest-large') == false | |
with: | |
target: ${{ matrix.platforms.target }} | |
args: "--locked ${{ matrix.platforms.features }}" | |
strip: true | |
env: | |
KRB5_CV_ATTR_CONSTRUCTOR_DESTRUCTOR: yes | |
AC_CV_FUNC_REGCOMP: yes | |
AC_CV_PRINTF_POSITIONAL: yes | |
clippy: | |
needs: check | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run cargo clippy | |
run: cargo clippy --all-targets --all-features -- --deny warnings | |
format: | |
needs: check | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run cargo fmt | |
run: cargo fmt --all -- --check | |
unused-dependencies: | |
needs: check | |
name: Unused dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: bnjbvr/cargo-machete@main | |
tests: | |
needs: check | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo test | |
env: | |
CI: "true" | |
doc: | |
needs: check | |
name: Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build documentation | |
run: cargo doc --no-deps --document-private-items --verbose | |
lychee: | |
name: Lychee | |
runs-on: ubuntu-latest | |
needs: [check] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: lycheeverse/lychee-action@v2 | |
name: Link Checker | |
# https://github.com/lycheeverse/lychee/issues/1405 | |
with: | |
args: --exclude-loopback README.md './crates/app/README.md' './crates/command/README.md' './crates/lib/README.md' './crates/wasm-types/README.md' './crates/bin/src/**' './crates/app/src/**' './crates/command/src/**' './crates/lib/src/**' './crates/wasm-types/src/**' './docs/*.md' --exclude-path ./docs/url-templates/README.md --exclude-path ./docs/schema-registry/README.md --exclude 'https://docs.rs' | |
# https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-docker-images | |
docker: | |
name: Docker image | |
runs-on: ubuntu-latest | |
needs: [check] | |
permissions: | |
contents: read | |
packages: write | |
attestations: write | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
id: push | |
with: | |
push: false | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
typos: | |
name: Typos | |
runs-on: ubuntu-latest | |
needs: [check] | |
steps: | |
- name: Checkout Actions Repository | |
uses: actions/checkout@v4 | |
- name: Check spelling of the project | |
uses: crate-ci/typos@master |