mirror of
https://github.com/serai-dex/serai.git
synced 2024-10-31 09:27:37 +00:00
534f951165
* Consolidate GitHub CI actions, split out Monero build now includes the specified Rust toolchain/components. Added a test dependencies action which grabs Foundry and Monero. Split the Monero v14 job into a matrixed job in its own workflow flow. It's now only run when Monero has changes. * Correct Monero unit/integration tests run timing Additionally tests a feature-less Monero build. Also removes a pointless Monero file, which already should have been removed, causing this workflow to be triggered. * Correct exclusion and paths Updates to FROST should re-run the Monero tests to ensure it didn't introduce API incompatibilities.
33 lines
741 B
YAML
33 lines
741 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/registry
|
|
~/.cargo/git
|
|
./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 }}
|