-
Notifications
You must be signed in to change notification settings - Fork 39
39 lines (37 loc) · 1.57 KB
/
build.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
# YAML can't do tabs, how silly
name: Compilation test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: install-deps
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: autoconf automake autotools-dev binutils cmake g++ gettext libbfio-dev libcurl4-openssl-dev libfmt-dev libgnutls28-dev libgsasl7-dev libjsoncpp-dev libldap2-dev libmariadb-dev libpam0g-dev libolecf-dev libpff-dev libsqlite3-dev libssl-dev libtinyxml2-dev libtool libxml2-dev libxxhash-dev libzstd-dev make m4 openssl php-dev pkg-config sed systemd uuid-dev zlib1g-dev
version: 1.2
- name: clone-gromox
uses: actions/checkout@v3
- name: clone-vmime
uses: actions/checkout@v3
with:
repository: kisli/vmime
path: vmime
- name: clone-libHX
uses: actions/checkout@v3
with:
repository: jengelh/libHX
path: libHX
- name: buildall
run: |
lscpu -b --online --parse | grep -v '^#' | wc -l >/tmp/ncpus
pushd vmime && cmake . -DVMIME_SENDMAIL_PATH:STRING="/usr/sbin/sendmail" -DVMIME_BUILD_SAMPLES:BOOL=OFF -DVMIME_HAVE_TLS_SUPPORT:BOOL=ON -DVMIME_BUILD_STATIC_LIBRARY:BOOL=OFF && make "-j$(cat /tmp/ncpus)" && sudo make install && popd
pushd libHX && ./qconf && make "-j$(cat /tmp/ncpus)" && sudo make install && popd
./qconf
LD_LIBRARY_PATH=/usr/local/lib make "-j$(cat /tmp/ncpus)"
LD_LIBRARY_PATH=/usr/local/lib make install DESTDIR="$PWD/rt" && rm -Rf rt
make distclean