summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFiona Klute <fiona.klute@gmx.de>2020-12-29 22:03:53 +0100
committerFiona Klute <fiona.klute@gmx.de>2021-01-02 16:37:44 +0100
commit9fc73ec96fa5adfc8e9a4bd2ee9e6543ffcfe120 (patch)
tree0502343d69dcae593373a08852f63d9b988c951b
parent3b80944f1678a193bb7fc3ff5c42a58798c2b66f (diff)
downloadgnutls-9fc73ec96fa5adfc8e9a4bd2ee9e6543ffcfe120.tar.gz
Github Actions job for MacOS CI
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
-rw-r--r--.github/workflows/macos.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
new file mode 100644
index 0000000000..37928cc398
--- /dev/null
+++ b/.github/workflows/macos.yml
@@ -0,0 +1,43 @@
+name: MacOS CI
+on:
+ push:
+
+jobs:
+ build:
+ runs-on: macos-11.0
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ submodules: false
+ - name: install dependencies
+ run: |
+ brew update
+ for pkg in openssl autoconf automake autogen libtool nettle p11-kit libtasn1 gettext bison; do
+ brew install $pkg || true
+ done
+ for pkg in nettle wget p11-kit libtasn1; do
+ brew upgrade $pkg || true
+ done
+ - name: update path
+ run: |
+ echo /usr/local/opt/gettext/bin >>${GITHUB_PATH}
+ echo /usr/local/opt/bison/bin >>${GITHUB_PATH}
+ - name: bootstrap
+ run: ./bootstrap
+ - name: configure
+ run: |
+ CC=clang ./configure --disable-full-test-suite --disable-valgrind-tests --disable-doc --disable-guile --disable-dependency-tracking
+ - name: make
+ run: |
+ make -j$(sysctl -n hw.ncpu) || make -j$(sysctl -n hw.ncpu) V=1
+ - name: make check
+ run: |
+ make -j$(sysctl -n hw.ncpu) check gl_public_submodule_commit=
+ - name: show debug info
+ if: failure()
+ run: |
+ find . -name 'test-suite.log' -execdir grep -il "FAILED" {} \; -exec echo {} \; -exec cat {} \;
+ for i in $(ls tests/*.log fuzz/*.log); do
+ echo "" && echo $i && cat $i
+ done
+ cat config.log