Skip to content

Commit

Permalink
gh: add a GitHub workflow for compile+testsuite testing (#313)
Browse files Browse the repository at this point in the history
This will cause all pushed commits and pull requests to be
fed through a compile and testsuite run.
  • Loading branch information
jengelh committed Jun 11, 2024
1 parent beb238b commit 43b262b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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: binutils cmake doxygen g++ libcppunit-dev libgnutls28-dev libgsasl7-dev libgtk-3-dev libssl-dev make pkg-config
version: 1.2
- name: clone-vmime
uses: actions/checkout@v3
- name: buildall
run: |
set -x
lscpu -b --online --parse | grep -v '^#' | wc -l >/tmp/ncpus
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
make test

0 comments on commit 43b262b

Please sign in to comment.