drsuapi.idl: fix source_dsa spelling
[samba4-gss.git] / third_party / heimdal / .github / workflows / osx.yml
blob29aa05fc1f7c5b40ff717f42676519471584c504
1 name: OS X Build
3 on:
4     push:
5       branches:
6          - 'master'
7          - 'osx-build'
8          - 'heimdal-7-1-branch'
9       paths:
10          - '!docs/**'
11          - '!**.md'
12          - '!**.[1-9]'
13          - '**.[chly]'
14          - '**.hin'
15          - '**.in'
16          - '**.am'
17          - '**.m4'
18          - '**.ac'
19          - '**.pl'
20          - '**.py'
21          - '**.asn1'
22          - '**.opt'
23          - '**/COPYING'
24          - '**/INSTALL'
25          - '**/README*'
26          - '.github/workflows/osx.yml'
27          - '!appveyor.yml'
28          - '!.travis.yml'
30     pull_request:
31       paths:
32          - '!docs/**'
33          - '!**.md'
34          - '!**.[1-9]'
35          - '**.[chly]'
36          - '**.hin'
37          - '**.in'
38          - '**.am'
39          - '**.m4'
40          - '**.ac'
41          - '**.pl'
42          - '**.py'
43          - '**.asn1'
44          - '**.opt'
45          - '**/COPYING'
46          - '**/INSTALL'
47          - '**/README*'
48          - '.github/workflows/osx.yml'
49          - '!appveyor.yml'
50          - '!.travis.yml'
52 jobs:
53     osx:
54         runs-on: ${{ matrix.os }}
55         strategy:
56             fail-fast: false
57             matrix:
58                 name: [osx-clang]
59                 include:
60                     - name: osx-clang
61                       os: macos-latest
62                       compiler: clang
63         steps:
64             - name: Install packages
65               run: |
66                 echo "bison, flex, ncurses, texinfo, and unzip are in the base OS."
67                 echo "berkeley-db, perl, python3, curl, and jq are installed in the"
68                 echo "base image already."
69                 brew install autoconf automake libtool cpanm texinfo texi2html
70                 sudo cpanm install JSON
71             - name: Clone repository
72               uses: actions/checkout@v1
73             - name: Build
74               env:
75                 CC: ${{ matrix.compiler }}
76                 MAKEVARS: ${{ matrix.makevars }}
77                 CONFIGURE_OPTS:  ${{ matrix.configureopts }}
78               run: |
79                 /bin/sh ./autogen.sh
80                 mkdir build
81                 cd build
82                 ../configure --srcdir=`dirname "$PWD"` --disable-heimdal-documentation --disable-afs-support --enable-maintainer-mode --enable-developer $CONFIGURE_OPTS --prefix=$HOME/inst CFLAGS="-Wno-error=shadow -Wno-error=bad-function-cast -Wno-error=unused-function -Wno-error=unused-result -Wno-error=deprecated-declarations" CFLAGS="-O0 -g -ggdb3"
83                 ulimit -c unlimited
84                 PATH=/usr/local/opt/texinfo/bin:$PATH
85                 export PATH
86                 make -j4
87             #- name: Setup upterm session
88             #  uses: lhotari/action-upterm@v1
89             #  with:
90             #      limit-access-to-actor: true
91             - name: Test
92               env:
93                 CC: ${{ matrix.compiler }}
94                 MAKEVARS: ${{ matrix.makevars }}
95                 CONFIGURE_OPTS:  ${{ matrix.configureopts }}
96               run: |
97                 set -vx
98                 sudo lsof -nP -i:49188 || true
99                 cd build
100                 make check
101             - name: Install
102               run: |
103                 cd build || true
104                 make DESTDIR=/tmp/h5l install
105                 cd /tmp/h5l
106                 tar czf $HOME/heimdal-install-osx.tgz .
107             - name: Test logs
108               run: |
109                 find build -depth -name \*.trs|xargs grep -lw FAIL|sed -e 's/trs$/log/' | cpio -o > $HOME/logs-osx.cpio
110                 find build -name \*.trs|xargs grep -lw FAIL|sed -e 's/trs$/log/'|xargs cat
111             - name: Failed Test logs
112               if: ${{ failure() }}
113               run: |
114                 find build -name \*.trs|xargs grep -lw FAIL|sed -e 's/trs$/log/'|xargs cat
115             - name: Upload Install Tarball
116               uses: actions/upload-artifact@v2
117               with:
118                 name: Install Tarball
119                 path: '~/heimdal-install-osx.tgz'
120             - name: Upload Artifacts
121               uses: actions/upload-artifact@v2
122               with:
123                 name: Upload Test Logs
124                 path: '~/logs-osx.cpio'