forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 2
72 lines (67 loc) · 1.94 KB
/
bsd.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI FreeBSD
on: [push, pull_request]
jobs:
testfreebsd:
runs-on: ubuntu-latest
name: Build on FreeBSD
timeout-minutes: 120
strategy:
fail-fast: true
matrix:
bitcoind-version: ["27.1"]
steps:
- uses: actions/checkout@v4
- name: Build
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
mem: 4096
prepare: |
pkg install -y \
bash \
wget \
py311-pip \
py311-sqlite3 \
jq \
gmake \
git \
python \
postgresql12-server \
autoconf \
automake \
libtool \
bash \
gettext \
sqlite3 \
lowdown \
curl
pip install --user -U wheel pip mako==1.1.5 mistune==0.8.4 jinja2==2.11.3 MarkupSafe==2.0.1
run: |
PATH=/root/.local/bin:$PATH
git clone https://github.com/lightning/bolts.git ../bolts
# fatal: unsafe repository ('/Users/runner/work/lightning/lightning' is owned by someone else)
git config --global --add safe.directory $GITHUB_WORKSPACE
./configure CC="$CC" --disable-valgrind
gmake
gmake install
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: clightning-${{ github.sha }}-freebsd
path: |
/usr/local/bin/lightningd
/usr/local/bin/lightning-cli
/usr/local/bin/lightning-hsmtool
/usr/local/libexec/c-lightning
/usr/local/share/man/man1
/usr/local/share/man/man5
/usr/local/share/man/man7
/usr/local/share/man/man8
/usr/local/share/doc/c-lightning
if-no-files-found: error
retention-days: 7
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: clightning-${{ github.sha }}-freebsd