rippled #164
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rippled | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 6 * * *' # Every day at 6:00 AM UTC. | |
jobs: | |
build-rippled: | |
uses: runziggurat/xrpl/.github/workflows/build-rippled.yml@main | |
build-ziggurat: | |
uses: runziggurat/ziggurat-core/.github/workflows/build-ziggurat.yml@main | |
with: | |
extra-args: --features performance | |
run-test-suite: | |
runs-on: ubuntu-latest | |
needs: [ build-rippled, build-ziggurat ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v3 | |
with: | |
name: node-executable | |
path: ./rippled | |
- name: Enable openSSL legacy functions | |
run: | | |
cp /etc/ssl/openssl.cnf ./ | |
sed -i 's/^\#openssl_conf = openssl_init/openssl_conf = openssl_init/' openssl.cnf | |
sed -i '/^\default = default_sect/a legacy = legacy_sect' openssl.cnf | |
sed -i '/^\[default_sect\]/a activate = 1' openssl.cnf | |
echo "[legacy_sect]" >> openssl.cnf | |
echo "activate = 1" >> openssl.cnf | |
- name: Run setup script | |
env: | |
OPENSSL_CONF: /home/runner/work/xrpl/xrpl/openssl.cnf | |
RIPPLED_BIN_PATH: /home/runner/work/xrpl/xrpl/rippled | |
run: | | |
pip3 install xrpl-py | |
chmod +x rippled/rippled | |
./tools/setup_env.sh | |
- name: Prepare IP addresses | |
run: | | |
wget -O tools/ips.py https://raw.githubusercontent.com/runziggurat/ziggurat-core/main/ziggurat-core-scripts/ips.py | |
python3 ./tools/ips.py --subnet 1.1.0.0/24 --file tools/ips_list.json --dev lo | |
- name: Run Ziggurat test suite | |
uses: runziggurat/ziggurat-core@main | |
with: | |
node-name: rippled | |
commit-hash: ${{ needs.build-rippled.outputs.commit-hash }} | |
call-process-results-workflow: | |
needs: [ run-test-suite ] | |
uses: runziggurat/ziggurat-core/.github/workflows/process-results.yml@main | |
with: | |
name: rippled | |
repository: xrpl | |
secrets: | |
gcp_credentials: ${{ secrets.GCP_CREDENTIALS }} |