mirror of
https://github.com/serai-dex/serai.git
synced 2024-11-01 01:47:38 +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.
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
name: monero-regtest
|
|
description: Spawns a regtest Monero daemon
|
|
|
|
inputs:
|
|
version:
|
|
description: "Version to download and run"
|
|
required: false
|
|
default: v0.18.0.0
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Monero Daemon Cache
|
|
id: cache-monerod
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: monerod
|
|
key: monerod-${{ runner.os }}-${{ runner.arch }}-${{ inputs.version }}
|
|
|
|
- name: Download the Monero Daemon
|
|
if: steps.cache-monerod.outputs.cache-hit != 'true'
|
|
# Calculates OS/ARCH to demonstrate it, yet then locks to linux-x64 due
|
|
# to the contained folder not following the same naming scheme and
|
|
# requiring further expansion not worth doing right now
|
|
shell: bash
|
|
run: |
|
|
RUNNER_OS=${{ runner.os }}
|
|
RUNNER_ARCH=${{ runner.arch }}
|
|
|
|
RUNNER_OS=${RUNNER_OS,,}
|
|
RUNNER_ARCH=${RUNNER_ARCH,,}
|
|
|
|
RUNNER_OS=linux
|
|
RUNNER_ARCH=x64
|
|
|
|
FILE=monero-$RUNNER_OS-$RUNNER_ARCH-${{ inputs.version }}.tar.bz2
|
|
wget https://downloads.getmonero.org/cli/$FILE
|
|
tar -xvf $FILE
|
|
|
|
mv monero-x86_64-linux-gnu-${{ inputs.version }}/monerod monerod
|
|
|
|
- name: Monero Regtest Daemon
|
|
shell: bash
|
|
run: ./monerod --regtest --offline --fixed-difficulty=1 --detach
|