mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Use composite actions in CI (#65)
* 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
This commit is contained in:
32
.github/actions/cached-rust/action.yml
vendored
Normal file
32
.github/actions/cached-rust/action.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
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 }}
|
||||
Reference in New Issue
Block a user