cryptography/.github/actions/cache/action.yml
Alex Gaynor a2ce5b34ac
fix cache action (#12371)
the workspace config isn't needed now that we have cargo.toml in the base of the repo
2025-01-31 12:08:29 -08:00

22 lines
527 B
YAML

name: Cache
description: Caches build data to speed builds
inputs:
key:
description: 'extra cache key components'
required: false
default: ''
runs:
using: "composite"
steps:
- name: Normalize key
id: normalized-key
run: echo "key=$(echo "${KEY}" | tr -d ',')" >> $GITHUB_OUTPUT
shell: bash
env:
KEY: "${{ inputs.key }}"
- uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
with:
key: ${{ steps.normalized-key.outputs.key }}-3