mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
gci: Add rust configuration to Github actions
This commit is contained in:
7
.github/scripts/setup.sh
vendored
7
.github/scripts/setup.sh
vendored
@@ -3,6 +3,8 @@
|
|||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
export BITCOIN_VERSION=0.20.1
|
export BITCOIN_VERSION=0.20.1
|
||||||
export ELEMENTS_VERSION=0.18.1.8
|
export ELEMENTS_VERSION=0.18.1.8
|
||||||
|
export RUST_VERSION=nightly
|
||||||
|
|
||||||
sudo useradd -ms /bin/bash tester
|
sudo useradd -ms /bin/bash tester
|
||||||
sudo apt-get update -qq
|
sudo apt-get update -qq
|
||||||
|
|
||||||
@@ -66,3 +68,8 @@ sudo chmod 0440 /etc/sudoers.d/tester
|
|||||||
elements-$ELEMENTS_VERSION-x86_64-linux-gnu.tar.bz2 \
|
elements-$ELEMENTS_VERSION-x86_64-linux-gnu.tar.bz2 \
|
||||||
elements-$ELEMENTS_VERSION
|
elements-$ELEMENTS_VERSION
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if [ "$RUST" == "1" ]; then
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
|
||||||
|
-y --default-toolchain ${RUST_VERSION}
|
||||||
|
fi
|
||||||
|
|||||||
32
.github/workflows/ci.yaml
vendored
32
.github/workflows/ci.yaml
vendored
@@ -338,3 +338,35 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: Junit Report ${{ github.run_number }}.${{ matrix.cfg }}
|
name: Junit Report ${{ github.run_number }}.${{ matrix.cfg }}
|
||||||
path: report.*
|
path: report.*
|
||||||
|
|
||||||
|
rust-test:
|
||||||
|
name: Rust Test Config
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
needs: [smoke-test]
|
||||||
|
env:
|
||||||
|
DEVELOPER: 1
|
||||||
|
RUST: 1
|
||||||
|
VALGRIND: 0
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2.0.0
|
||||||
|
|
||||||
|
- name: Set up Python 3.6
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.6
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
bash -x .github/scripts/setup.sh
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
bash -x .github/scripts/build.sh
|
||||||
|
|
||||||
|
- name: Upload Unit Test Results
|
||||||
|
if: always()
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: Junit Report ${{ github.run_number }}.${{ matrix.cfg }}
|
||||||
|
path: report.*
|
||||||
|
|||||||
Reference in New Issue
Block a user