deps: update rust crate const-str to 0.6.0 #44
Workflow file for this run
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: CI | |
on: [push, pull_request, workflow_dispatch] | |
permissions: | |
attestations: write | |
contents: read | |
id-token: write | |
jobs: | |
build-release: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
target-cpu: [x86-64, raptorlake, znver4] | |
include: | |
- os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
ext: so | |
- os: windows-latest | |
target: x86_64-pc-windows-gnu | |
ext: dll | |
- os: macos-latest | |
target: x86_64-apple-darwin | |
ext: dylib | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
targets: ${{ matrix.target }} | |
- name: Build | |
run: cargo build --release --target ${{ matrix.target }} | |
env: | |
RUSTFLAGS: -C target-cpu=${{ matrix.target-cpu }} | |
- name: Attest build provenance | |
uses: actions/[email protected] | |
if: ${{ github.event_name == 'push' }} | |
with: | |
subject-path: target/${{ matrix.target }}/release/*hysteresis.${{ matrix.ext }} | |
- name: Upload | |
uses: actions/[email protected] | |
with: | |
name: hysteresis-${{ matrix.target }}-${{ matrix.target-cpu }} | |
path: target/${{ matrix.target }}/release/*hysteresis.${{ matrix.ext }} | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: clippy | |
- name: Run Clippy | |
run: cargo clippy | |
rustfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt | |
- name: Run rustfmt | |
run: cargo fmt -- --check | |
cargo-shear: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- uses: cargo-bins/[email protected] | |
- run: cargo binstall --no-confirm cargo-shear | |
- run: cargo shear |