Skip to content

build(deps): bump docker/setup-buildx-action from 3 to 4 #4107

build(deps): bump docker/setup-buildx-action from 3 to 4

build(deps): bump docker/setup-buildx-action from 3 to 4 #4107

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
inputs:
os:
description: 'OS to run tests on'
required: false
default: 'ubuntu-latest'
type: choice
options:
- ubuntu-latest
- macos-latest
- windows-latest
- all
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
strategy:
fail-fast: false
matrix:
os: ${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.os == 'all' && fromJSON('["ubuntu-latest", "macos-latest", "windows-latest"]') || fromJSON(format('["{0}"]', github.event.inputs.os))) || fromJSON('["ubuntu-latest"]') }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: extractions/setup-just@v3
- uses: harehare/setup-mq@v1
with:
bins: docs
- uses: Swatinem/rust-cache@v2
- name: Install tools
uses: taiki-e/install-action@v2
with:
tool: nextest,cargo-llvm-cov
- name: Build
run: just build
- name: Configure RUSTFLAGS for Windows
if: runner.os == 'Windows'
shell: bash
run: |
echo "RUSTFLAGS=${RUSTFLAGS} -C link-args=/STACK:8388608" >> $GITHUB_ENV
- name: Run tests
run: just test
env:
NEXTEST_RETRIES: 3
- name: Check docs
if: runner.os != 'Windows'
run: just docs
- name: Check for diffs in docs
if: runner.os != 'Windows'
run: |
if [[ -n $(git status --porcelain docs/) ]]; then
echo "Error: Changes detected in docs directory. Please commit these changes."
git status --porcelain docs/
exit 1
fi
- name: Generate code coverage
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest'
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: lcov.info
fail_ci_if_error: true
check-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: EmbarkStudios/cargo-deny-action@v2
with:
command: check bans licenses sources