-
Notifications
You must be signed in to change notification settings - Fork 98
47 lines (40 loc) · 1.29 KB
/
ubuntu.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
name: ubuntu
on: [push, pull_request]
jobs:
ubuntu:
runs-on: ubuntu-latest
name: A job to build and run strfry on Ubuntu
steps:
- name: Checkout strfry
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build strfry
run: |
sudo apt update && sudo apt install -y --no-install-recommends \
git g++ make pkg-config libtool ca-certificates \
libyaml-perl libtemplate-perl libregexp-grammars-perl libssl-dev zlib1g-dev \
liblmdb-dev libflatbuffers-dev libsecp256k1-dev libzstd-dev
git submodule update --init
make setup-golpe
make -j4
if ! [ -f ./strfry ]; then
echo "Strfry build failed."
exit 1
fi
- name: Package strfry
run: |
sudo apt-get install debhelper devscripts -y
dpkg-buildpackage --build=binary -us -uc
mv ../*.deb .
filename=`ls *.deb | grep -v -- -dbgsym`
echo "filename=$filename" >> $GITHUB_ENV
- name: Upload strfry deb
uses: actions/upload-artifact@v3
with:
name: ${{ env.filename }}
path: ${{ env.filename }}
- name: Run strfry
run: |
cat /etc/os-release
sudo ./strfry relay &