Skip to content

clean up publish (#221) #602

clean up publish (#221)

clean up publish (#221) #602

Workflow file for this run

name: CI
on:
push:
branches: ["develop"]
pull_request: {}
workflow_dispatch: {}
permissions:
actions: read
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: ./.github/actions/setup-rust
- name: Rust Build
run: cargo build --all-features --all-targets
- name: Rust Lint - Format
run: cargo fmt --all --check
- name: Rust Lint - Clippy
run: cargo clippy --all-features --all-targets
- name: Rust Test
run: cargo test --workspace --all-features
msrv:
name: MSRV Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Get MSRV
id: msrv
run: echo "version=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[0].rust_version')" >> $GITHUB_OUTPUT
- name: Install MSRV Toolchain
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # master
with:
toolchain: "${{ steps.msrv.outputs.version }}"
- name: Rust Build
run: cargo build --all-features --all-targets
bench-codspeed:
name: Benchmark with Codspeed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: ./.github/actions/setup-rust
- name: Install Codspeed
shell: bash
run: cargo install --force cargo-codspeed --locked
- name: Build benchmarks
env:
RUSTFLAGS: "-C target-feature=+avx2"
run: |
cargo codspeed build --profile bench -m instrumentation
- name: Run benchmarks - Instrumentation
uses: CodSpeedHQ/action@3194d9a39c4d46684cb44bf7207fc56626aad8fd # v4
with:
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}
mode: instrumentation