diff options
author | Jan Engelhardt <[email protected]> | 2024-06-11 19:01:01 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-06-11 19:01:01 +0000 |
commit | 43b262bd8c79fbaadc9522eaa04a40427782e0c6 (patch) | |
tree | 2e88d553c9d5b5e5defa5e1ef19c07c9b0cc7296 | |
parent | Fix a test failure in pathTest::testGenerate (#312) (diff) | |
download | vmime-43b262bd8c79fbaadc9522eaa04a40427782e0c6.tar.gz vmime-43b262bd8c79fbaadc9522eaa04a40427782e0c6.zip |
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.
-rw-r--r-- | .github/workflows/build.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..92f169f9 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 |