Skip to content

Commit 43b262b

Browse files
authored
gh: add a GitHub workflow for compile+testsuite testing (#313)
This will cause all pushed commits and pull requests to be fed through a compile and testsuite run.
1 parent beb238b commit 43b262b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/build.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Compilation test
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: install-deps
14+
uses: awalsh128/cache-apt-pkgs-action@latest
15+
with:
16+
packages: binutils cmake doxygen g++ libcppunit-dev libgnutls28-dev libgsasl7-dev libgtk-3-dev libssl-dev make pkg-config
17+
version: 1.2
18+
- name: clone-vmime
19+
uses: actions/checkout@v3
20+
- name: buildall
21+
run: |
22+
set -x
23+
lscpu -b --online --parse | grep -v '^#' | wc -l >/tmp/ncpus
24+
cmake . -DVMIME_SENDMAIL_PATH:STRING="/usr/sbin/sendmail" -DVMIME_HAVE_TLS_SUPPORT:BOOL=ON -DVMIME_BUILD_TESTS=ON -DVMIME_BUILD_SAMPLES=ON && make "-j$(cat /tmp/ncpus)" && sudo make install
25+
make test

0 commit comments

Comments
 (0)