mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-19 05:44:12 +01:00
CI: set elements and bitcoind versions in one place.
We have them spread everywhere: unify them, and make setup.sh use install-bitcoind.sh Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
cb4dd7489c
commit
c30502779e
3
.github/scripts/install-bitcoind.sh
vendored
3
.github/scripts/install-bitcoind.sh
vendored
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
export BITCOIN_VERSION=27.1
|
||||||
|
export ELEMENTS_VERSION=23.2.1
|
||||||
|
|
||||||
DIRNAME="bitcoin-${BITCOIN_VERSION}"
|
DIRNAME="bitcoin-${BITCOIN_VERSION}"
|
||||||
EDIRNAME="elements-${ELEMENTS_VERSION}"
|
EDIRNAME="elements-${ELEMENTS_VERSION}"
|
||||||
FILENAME="${DIRNAME}-x86_64-linux-gnu.tar.gz"
|
FILENAME="${DIRNAME}-x86_64-linux-gnu.tar.gz"
|
||||||
|
17
.github/scripts/setup.sh
vendored
17
.github/scripts/setup.sh
vendored
@ -1,8 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
export BITCOIN_VERSION=27.1
|
|
||||||
export ELEMENTS_VERSION=22.0.2
|
|
||||||
export RUST_VERSION=stable
|
export RUST_VERSION=stable
|
||||||
|
|
||||||
sudo useradd -ms /bin/bash tester
|
sudo useradd -ms /bin/bash tester
|
||||||
@ -53,20 +51,7 @@ sudo apt-get -qq install --no-install-recommends --allow-unauthenticated -yy \
|
|||||||
echo "tester ALL=(root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/tester
|
echo "tester ALL=(root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/tester
|
||||||
sudo chmod 0440 /etc/sudoers.d/tester
|
sudo chmod 0440 /etc/sudoers.d/tester
|
||||||
|
|
||||||
(
|
"$(dirname "$0")"/install-bitcoind.sh
|
||||||
cd /tmp/ || exit 1
|
|
||||||
wget https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}/bitcoin-${BITCOIN_VERSION}-x86_64-linux-gnu.tar.gz
|
|
||||||
wget https://github.com/ElementsProject/elements/releases/download/elements-${ELEMENTS_VERSION}/elements-${ELEMENTS_VERSION}-x86_64-linux-gnu.tar.gz
|
|
||||||
tar -xf bitcoin-${BITCOIN_VERSION}-x86_64-linux-gnu.tar.gz
|
|
||||||
tar -xf elements-${ELEMENTS_VERSION}-x86_64-linux-gnu.tar.gz
|
|
||||||
sudo mv bitcoin-${BITCOIN_VERSION}/bin/* /usr/local/bin
|
|
||||||
sudo mv elements-${ELEMENTS_VERSION}/bin/* /usr/local/bin
|
|
||||||
rm -rf \
|
|
||||||
bitcoin-${BITCOIN_VERSION}-x86_64-linux-gnu.tar.gz \
|
|
||||||
bitcoin-${BITCOIN_VERSION} \
|
|
||||||
elements-${ELEMENTS_VERSION}-x86_64-linux-gnu.tar.gz \
|
|
||||||
elements-${ELEMENTS_VERSION}
|
|
||||||
)
|
|
||||||
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
|
||||||
-y --default-toolchain ${RUST_VERSION}
|
-y --default-toolchain ${RUST_VERSION}
|
||||||
|
6
.github/workflows/ci.yaml
vendored
6
.github/workflows/ci.yaml
vendored
@ -211,8 +211,6 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
env:
|
env:
|
||||||
BITCOIN_VERSION: "27.1"
|
|
||||||
ELEMENTS_VERSION: 23.2.1
|
|
||||||
RUST_PROFILE: release # Has to match the one in the compile step
|
RUST_PROFILE: release # Has to match the one in the compile step
|
||||||
PYTEST_OPTS: --timeout=1200 --force-flaky
|
PYTEST_OPTS: --timeout=1200 --force-flaky
|
||||||
needs:
|
needs:
|
||||||
@ -319,8 +317,6 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
env:
|
env:
|
||||||
BITCOIN_VERSION: "27.1"
|
|
||||||
ELEMENTS_VERSION: 23.2.1
|
|
||||||
RUST_PROFILE: release # Has to match the one in the compile step
|
RUST_PROFILE: release # Has to match the one in the compile step
|
||||||
CFG: compile-gcc
|
CFG: compile-gcc
|
||||||
PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 --force-flaky
|
PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 --force-flaky
|
||||||
@ -389,8 +385,6 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
env:
|
env:
|
||||||
BITCOIN_VERSION: "27.1"
|
|
||||||
ELEMENTS_VERSION: 23.2.1
|
|
||||||
RUST_PROFILE: release
|
RUST_PROFILE: release
|
||||||
SLOW_MACHINE: 1
|
SLOW_MACHINE: 1
|
||||||
TEST_DEBUG: 1
|
TEST_DEBUG: 1
|
||||||
|
Loading…
Reference in New Issue
Block a user