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:
Luke Parker
2022-07-23 06:05:31 -05:00
committed by GitHub
parent bb3ffa9021
commit 18a1d15f78
4 changed files with 103 additions and 92 deletions

32
.github/actions/cached-rust/action.yml vendored Normal file
View 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 }}