Skip to content

Commit 645d185

Browse files
committed
CI: Add new sanity-check workflow.
* src/Makefile.in (check-incl, c++.c): Fix for new headers, use libtool to compile.
1 parent 7623297 commit 645d185

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.github/workflows/ci.yml

+15
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
conf-debug: [--enable-debug, --disable-debug]
2323
conf-gssapi: [--with-gssapi, --without-gssapi]
2424
exclude:
25+
- os: [ubuntu-20.04, ubuntu-22.04]
26+
conf-shared: --enable-static
2527
- conf-gssapi: --without-gssapi
2628
conf-ssl: [--without-ssl, --with-ssl=gnutls]
2729
- conf-xml: --with-libxml2
@@ -70,3 +72,16 @@ jobs:
7072
- run: ./configure --with-ssl=openssl --with-expat --enable-debug --with-gssapi
7173
- run: make -j`nproc`
7274
- run: make check
75+
76+
sanity-checks:
77+
name: Build sanity checks
78+
runs-on: ubuntu-latest
79+
container:
80+
image: fedora:latest
81+
steps:
82+
- run: dnf update -y && dnf install -y autoconf make expat-devel openssl-devel libtool zlib-devel gcc-c++
83+
- uses: actions/checkout@v3
84+
- run: ./autogen.sh
85+
- run: ./configure --with-ssl=openssl --with-expat --enable-debug
86+
- run: make -C src check-incl
87+
- run: make -C src check-c++

src/Makefile.in

+4-3
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ clean:
8888
mktable: mktable.lo
8989
$(LINK) -o $@ mktable.lo
9090

91-
c++.c:
92-
find . -name ne_\*.h -print | sed 's/.*/#include "&"/;/ne_priv/d' > $@
91+
c++.c: Makefile
92+
find . -name ne_\*.h -print | sed 's/.*/#include "&"/;/ne_priv/d;/ne_internal.h/d;/ne_ntlm.h/d;/ne_acl.h/d' > $@
9393
echo "int main(void) {}" >> $@
9494

9595
check-c++: c++.c
@@ -98,9 +98,10 @@ check-c++: c++.c
9898
check-incl:
9999
@for f in ne_*.h; do \
100100
[ x"$$f" != "xne_internal.h" ] || continue; \
101+
[ x"$$f" != "xne_ntlm.h" ] || continue; \
101102
echo Checking $$f...; \
102103
echo "#include \"$$f\"" > checkincl.c; \
103-
$(COMPILE) -c checkincl.c -o checkincl.o || exit 1; done
104+
$(LT_COMPILE) -c checkincl.c -o checkincl.o || exit 1; done
104105

105106
# Update generated character lookup tables.
106107
update-tables: mktable

0 commit comments

Comments
 (0)