-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (38 loc) · 1.25 KB
/
ci.yml
File metadata and controls
40 lines (38 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: ci
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run build deps
run: |
sudo apt-get -q update
sudo apt-get -y install autoconf automake build-essential git libtool libgmp-dev libsqlite3-dev python3 python3-mako net-tools zlib1g-dev libsodium-dev gettext
sudo apt-get install -y valgrind python3-pip libpq-dev
sudo apt-get install -y python3-setuptools libcurl4-openssl-dev libssl-dev clang-format
pip3 install virtualenv
shell: bash
- name: Run linter
run: clang-format -i *.c && git diff --exit-code
shell: bash
- name: Run build
run: |
git clone https://github.com/ElementsProject/lightning.git
cd lightning
git checkout v0.10.1
python3 -m virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
cp ../esplora.* plugins/
patch -p1 < ../Makefile.patch
./configure
make
deactivate
shell: bash
- name: Upload Archive
uses: actions/upload-artifact@v2
with:
name: esplora
path: ./lightning/plugins/esplora