mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 12:49:23 +00:00
* Attempt composite actions in CI * Remove needs monero-daemon for the action * Correct actions folder layout * Remove empty inputs/outputs, add shell * Try moving env declaration spot * Remove usage of env * Cached Rust composite action * Replace [] with "" Remove empty outputs
33 lines
709 B
YAML
33 lines
709 B
YAML
name: cached-rust
|
|
description: Installs Rust, caching ~/.cargo and ./target
|
|
|
|
inputs:
|
|
toolchain:
|
|
description: "Toolchain to install"
|
|
required: false
|
|
default: stable
|
|
|
|
components:
|
|
description: "Components to install"
|
|
required: false
|
|
default:
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Rust cache
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.cargo
|
|
./target
|
|
key: ${{ runner.os }}-${{ runner.arch }}-rust-${{ inputs.toolchain }}
|
|
|
|
- name: Install Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: ${{ inputs.toolchain }}
|
|
profile: minimal
|
|
default: true
|
|
components: ${{ inputs.components }}
|