mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
22 lines
527 B
YAML
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
|