Skip to content

ci(deps): bump actions/attest-build-provenance from 1 to 2 #137

ci(deps): bump actions/attest-build-provenance from 1 to 2

ci(deps): bump actions/attest-build-provenance from 1 to 2 #137

Workflow file for this run

name: ci
on:
pull_request:
branches:
- 'main'
push:
branches-ignore:
- 'gh-readonly-queue/**'
workflow_dispatch:
merge_group:
types: [ checks_requested ]
env:
RUSTFLAGS: -Dwarnings
jobs:
build_and_test:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
strategy:
matrix:
os: [ubuntu-latest]
rustalias: [stable, nightly]
feature_flag: ["", "--no-default-features", "--features derive_harden_sanitize"]
include:
- rustalias: stable
rust: stable
- rustalias: nightly
rust: nightly
name: 'Build and test ${{ matrix.feature_flag }}: ${{ matrix.os }}, ${{ matrix.rustalias }}'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Check
uses: actions-rs/cargo@v1
with:
command: check
args: --all ${{ matrix.feature_flag }} --bins --examples
- name: Tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all ${{ matrix.feature_flag }}
cargo_fmt:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
name: 'Cargo fmt'
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- name: fmt
run: cargo fmt --all -- --check
style_and_docs:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
strategy:
matrix:
feature_flag: ["", "--no-default-features", "--features derive_harden_sanitize"]
runs-on: ubuntu-latest
name: 'Style and docs ${{ matrix.feature_flag }}'
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: clippy
- name: clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets ${{ matrix.feature_flag }} -- -D warnings -W clippy::pedantic
- name: docs
uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps ${{ matrix.feature_flag }}