obsidian-export/.github/actions/setup-ci/action.yaml
Nick Groenen b216ac63aa
Refactor CI pipelines
Various semi-related changes to the GHA setup to maximize code-reuse and
cache effectiveness, as well as introduce rust-toolchain.toml and cargo
deny.
2024-08-02 18:28:51 +02:00

20 lines
693 B
YAML

name: Setup CI environment
inputs:
rust-cache-key:
description: "An additional cache key that is added alongside the automatic `job`-based cache key and can be used to further differentiate jobs."
required: false
rust-cache-shared-key:
description: "A cache key that is used instead of the automatic `job`-based key, and is stable over multiple jobs."
required: false
runs:
using: "composite"
steps:
- name: Install rust toolchain
shell: bash
run: rustup show
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2
with:
key: "${{ inputs.rust-cache-key }}"
shared-key: "${{ inputs.rust-cache-shared-key }}"