commit d84fd5256ea6be54528959090a3f4783fb02678b
parent 0b2c887d1879a0f311c0608bfd4ec1607c5e8324
Author: Rolf Eike Beer <eike@sf-mail.de>
Date: Sun, 24 Jan 2021 11:30:49 +0100
GitHub CI: add a build forced to use utmp()
Diffstat:
1 file changed, 34 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml
@@ -20,25 +20,49 @@ jobs:
name: gcc-default,
cc: gcc,
nroff: nroff,
- cflags: ""
+ utmp: false,
+ cflags: "",
+ makeflags: ""
}
- {
name: gcc-no_obsolete,
cc: gcc,
nroff: nroff,
- cflags: "-DDEPRECATED_FUNCTIONS_REMOVED"
+ utmp: false,
+ cflags: "-DDEPRECATED_FUNCTIONS_REMOVED",
+ makeflags: ""
+ }
+ - {
+ name: gcc-utmp,
+ cc: gcc,
+ nroff: true,
+ utmp: true,
+ cflags: "-DDEPRECATED_FUNCTIONS_REMOVED",
+ makeflags: "-o qtmp.h"
}
- {
name: clang-default,
cc: clang,
nroff: nroff,
- cflags: ""
+ utmp: false,
+ cflags: "",
+ makeflags: ""
}
- {
name: clang-no_obsolete,
cc: clang,
nroff: true,
- cflags: "-DDEPRECATED_FUNCTIONS_REMOVED"
+ utmp: false,
+ cflags: "-DDEPRECATED_FUNCTIONS_REMOVED",
+ makeflags: ""
+ }
+ - {
+ name: clang-utmp,
+ cc: clang,
+ nroff: true,
+ utmp: true,
+ cflags: "-DDEPRECATED_FUNCTIONS_REMOVED",
+ makeflags: "-o qtmp.h"
}
steps:
@@ -56,10 +80,15 @@ jobs:
CC: ${{ matrix.config.cc }}
CFLAGS: ${{ matrix.config.cflags }}
+ - name: copy utmp
+ if: matrix.config.utmp
+ run: cp qtmp.h1 qtmp.h
+
- name: make
- run: make it man NROFF=${NROFF}
+ run: make -j 2 ${MAKEFLAGS} it man NROFF=${NROFF}
env:
NROFF: ${{ matrix.config.nroff }}
+ MAKEFLAGS: ${{ matrix.config.makeflags }}
- name: unittests
run: make test