mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-28 22:49:42 +00:00
88440807e1
Some checks failed
Processor Tests / build (push) Has been cancelled
Coordinator Tests / build (push) Has been cancelled
Full Stack Tests / build (push) Has been cancelled
Lint / clippy (macos-13) (push) Has been cancelled
Lint / clippy (macos-14) (push) Has been cancelled
Lint / clippy (ubuntu-latest) (push) Has been cancelled
Lint / clippy (windows-latest) (push) Has been cancelled
Lint / deny (push) Has been cancelled
Lint / fmt (push) Has been cancelled
Lint / machete (push) Has been cancelled
Message Queue Tests / build (push) Has been cancelled
networks/ Tests / test-networks (push) Has been cancelled
no-std build / build (push) Has been cancelled
Reproducible Runtime / build (push) Has been cancelled
Monero Tests / unit-tests (push) Has been cancelled
Monero Tests / integration-tests (v0.17.3.2) (push) Has been cancelled
Monero Tests / integration-tests (v0.18.3.4) (push) Has been cancelled
Tests / test-infra (push) Has been cancelled
Tests / test-substrate (push) Has been cancelled
Tests / test-serai-client (push) Has been cancelled
* Monero v0.18.3.4 * Correct `check_weight_and_fee` call * Restore empty test files so CI isn't borked
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
name: monero-regtest
|
|
description: Spawns a regtest Monero daemon
|
|
|
|
inputs:
|
|
version:
|
|
description: "Version to download and run"
|
|
required: false
|
|
default: v0.18.3.4
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Monero Daemon Cache
|
|
id: cache-monerod
|
|
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
|
|
with:
|
|
path: /usr/bin/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
|
|
|
|
sudo mv monero-x86_64-linux-gnu-${{ inputs.version }}/monerod /usr/bin/monerod
|
|
sudo chmod 777 /usr/bin/monerod
|
|
sudo chmod +x /usr/bin/monerod
|
|
|
|
- name: Monero Regtest Daemon
|
|
shell: bash
|
|
run: PATH=$PATH:/usr/bin ./orchestration/dev/networks/monero/run.sh --detach
|