-
Notifications
You must be signed in to change notification settings - Fork 1
80 lines (68 loc) · 2.4 KB
/
publish.yaml
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
73
74
75
76
77
78
79
name: Release zflist
on: push
jobs:
release:
name: Release zflist
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@master
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential git libsnappy-dev libz-dev \
libtar-dev libb2-dev autoconf libtool libjansson-dev \
libhiredis-dev libsqlite3-dev libssl-dev
- name: Clone capnp-c
working-directory:
run: |
git clone https://github.com/opensourcerouting/c-capnproto
cd ./c-capnproto
git submodule update --init --recursive
- name: Configure capnp-c
working-directory: ./c-capnproto
run: |
autoreconf -f -i -s
./configure
- name: Build capnp-c
working-directory: ./c-capnproto
run: |
make -j 3
sudo make install
sudo ldconfig
- name: Clone libcurl
run: |
git clone --depth=1 -b curl-7_62_0 https://github.com/curl/curl
- name: Configure libcurl
working-directory: ./curl
run: |
autoreconf -f -i -s
./configure --disable-debug --enable-optimize --disable-curldebug --disable-symbol-hiding --disable-rt \
--disable-ftp --disable-ldap --disable-ldaps --disable-rtsp --disable-proxy --disable-dict \
--disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher \
--disable-manual --disable-libcurl-option --disable-sspi --disable-ntlm-wb --without-brotli --without-librtmp --without-winidn \
--disable-threaded-resolver \
--with-openssl
- name: Build libcurl
working-directory: ./curl
run: |
make -j 3
sudo make install
sudo ldconfig
- name: Build libflist
working-directory: ${{ github.workspace }}/libflist
run: |
make
- name: Build zflist binary
working-directory: ${{ github.workspace }}/zflist
run: |
make production
# cp zflist $GITHUB_WORKSPACE/zflist
# strip -s $GITHUB_WORKSPACE/zflist
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: maxux/zflist
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: ${{ github.workspace }}/.github/workflows/Dockerfile