Skip to content

chore: release v9.0.0-pre3 #957

chore: release v9.0.0-pre3

chore: release v9.0.0-pre3 #957

Workflow file for this run

name: Cargo hack
permissions:
contents: read
concurrency:
group: cargo-hack-${{ (github.ref == 'refs/heads/master' && github.sha) || (github.event_name == 'pull_request' && github.head_ref) || github.ref }}
cancel-in-progress: false
on:
workflow_dispatch:
pull_request:
# this file is used to test all feature combinations using cargo-hack
# but only specific conditions to avoid overloading CI on every push/PR
# since this CI takes a very long time
jobs:
cargo-hack-all-features:
if: |
startsWith(github.base_ref, 'release-plz-') ||
contains(join(github.event.pull_request.changed_files, ','), '.github/workflows/cargo_hack.yml')
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: target
key: ${{ runner.os }}-rust-cargo-hack-${{ hashFiles('Cargo.toml') }}
- run: cargo hack test --feature-powerset --all-targets --exclude-features _bzip2_any,_arbitrary,_deflate-any