2020-08-17 04:59:23 +00:00
|
|
|
name: CI
|
|
|
|
|
2020-08-21 08:37:25 +00:00
|
|
|
on: [ push, pull_request ]
|
2020-08-17 04:59:23 +00:00
|
|
|
|
2021-01-08 11:24:44 +00:00
|
|
|
env:
|
|
|
|
# Enable format attributes in ncurses headers
|
|
|
|
# Enable fortified memory/string handling
|
|
|
|
CPPFLAGS: -DGCC_PRINTF -DGCC_SCANF -D_FORTIFY_SOURCE=2
|
|
|
|
|
2020-08-17 04:59:23 +00:00
|
|
|
jobs:
|
2020-10-20 13:27:22 +00:00
|
|
|
build-ubuntu-latest-minimal-gcc:
|
2020-08-17 04:59:23 +00:00
|
|
|
runs-on: ubuntu-latest
|
2020-08-17 05:40:47 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-08-21 08:37:25 +00:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: sudo apt-get install libncursesw5-dev
|
|
|
|
- name: Bootstrap
|
|
|
|
run: ./autogen.sh
|
|
|
|
- name: Configure
|
2021-01-22 18:14:46 +00:00
|
|
|
run: ./configure --enable-werror --enable-linux-affinity --disable-unicode --disable-sensors
|
2020-11-20 16:50:34 +00:00
|
|
|
- name: Enable compatibility modes
|
|
|
|
run: |
|
|
|
|
sed -i 's/#define HAVE_FSTATAT 1/#undef HAVE_FSTATAT/g' config.h
|
|
|
|
sed -i 's/#define HAVE_OPENAT 1/#undef HAVE_OPENAT/g' config.h
|
|
|
|
sed -i 's/#define HAVE_READLINKAT 1/#undef HAVE_READLINKAT/g' config.h
|
2020-08-17 05:53:49 +00:00
|
|
|
- name: Build
|
2020-10-15 05:25:03 +00:00
|
|
|
run: make -k
|
2020-08-21 08:37:25 +00:00
|
|
|
- name: Distcheck
|
2021-01-22 18:14:46 +00:00
|
|
|
run: make distcheck DISTCHECK_CONFIGURE_FLAGS="--enable-werror --enable-linux-affinity --disable-unicode --disable-sensors"
|
2020-08-25 09:56:26 +00:00
|
|
|
|
2020-10-20 13:27:22 +00:00
|
|
|
build-ubuntu-latest-minimal-clang:
|
2020-08-25 09:56:26 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
2020-12-03 14:24:26 +00:00
|
|
|
CC: clang-11
|
2020-08-25 09:56:26 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: install clang repo
|
|
|
|
run: |
|
|
|
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | sudo apt-key add -
|
2020-12-03 14:24:26 +00:00
|
|
|
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main' -y
|
2020-08-25 09:56:26 +00:00
|
|
|
sudo apt-get update -q
|
|
|
|
- name: Install Dependencies
|
2020-12-03 14:24:26 +00:00
|
|
|
run: sudo apt-get install clang-11 libncursesw5-dev
|
2020-08-25 09:56:26 +00:00
|
|
|
- name: Bootstrap
|
|
|
|
run: ./autogen.sh
|
|
|
|
- name: Configure
|
2021-01-22 18:14:46 +00:00
|
|
|
run: ./configure --enable-werror --enable-linux-affinity --disable-unicode --disable-sensors
|
2020-08-25 09:56:26 +00:00
|
|
|
- name: Build
|
2020-10-15 05:25:03 +00:00
|
|
|
run: make -k
|
2020-08-25 09:56:26 +00:00
|
|
|
- name: Distcheck
|
2021-01-22 18:14:46 +00:00
|
|
|
run: make distcheck DISTCHECK_CONFIGURE_FLAGS="--enable-werror --enable-linux-affinity --disable-unicode --disable-sensors"
|
2020-08-17 04:59:23 +00:00
|
|
|
|
2020-10-20 13:27:22 +00:00
|
|
|
build-ubuntu-latest-full-featured-gcc:
|
2020-08-25 08:52:29 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-01-08 11:24:44 +00:00
|
|
|
# Enable LTO, might trigger additional warnings on advanced inlining
|
|
|
|
env:
|
|
|
|
CFLAGS: -O3 -g -flto
|
2021-01-27 13:32:03 +00:00
|
|
|
LDFLAGS: -O3 -g -flto -Wl,--as-needed
|
2020-08-25 08:52:29 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Dependencies
|
2020-09-02 12:39:25 +00:00
|
|
|
run: sudo apt-get install libncursesw5-dev libhwloc-dev libnl-3-dev libnl-genl-3-dev libsensors4-dev libcap-dev
|
2020-08-25 08:52:29 +00:00
|
|
|
- name: Bootstrap
|
|
|
|
run: ./autogen.sh
|
|
|
|
- name: Configure
|
2021-02-16 18:34:42 +00:00
|
|
|
run: ./configure --enable-werror --enable-openvz --enable-vserver --enable-ancient-vserver --enable-unicode --enable-hwloc --enable-delayacct --enable-sensors --enable-capabilities
|
2020-08-25 08:52:29 +00:00
|
|
|
- name: Build
|
2020-10-15 05:25:03 +00:00
|
|
|
run: make -k
|
2020-08-25 08:52:29 +00:00
|
|
|
- name: Distcheck
|
2021-02-16 18:34:42 +00:00
|
|
|
run: make distcheck DISTCHECK_CONFIGURE_FLAGS='--enable-werror --enable-openvz --enable-vserver --enable-ancient-vserver --enable-unicode --enable-hwloc --enable-delayacct --enable-sensors --enable-capabilities'
|
2020-08-25 08:52:29 +00:00
|
|
|
|
2020-10-20 13:27:22 +00:00
|
|
|
build-ubuntu-latest-full-featured-clang:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
2020-12-03 14:24:26 +00:00
|
|
|
CC: clang-11
|
2020-10-20 13:27:22 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: install clang repo
|
|
|
|
run: |
|
|
|
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | sudo apt-key add -
|
2020-12-03 14:24:26 +00:00
|
|
|
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main' -y
|
2020-10-20 13:27:22 +00:00
|
|
|
sudo apt-get update -q
|
|
|
|
- name: Install Dependencies
|
2020-09-02 12:39:25 +00:00
|
|
|
run: sudo apt-get install clang-11 libncursesw5-dev libhwloc-dev libnl-3-dev libnl-genl-3-dev libsensors4-dev libcap-dev
|
2020-10-20 13:27:22 +00:00
|
|
|
- name: Bootstrap
|
|
|
|
run: ./autogen.sh
|
|
|
|
- name: Configure
|
2021-02-16 18:34:42 +00:00
|
|
|
run: ./configure --enable-werror --enable-openvz --enable-vserver --enable-ancient-vserver --enable-unicode --enable-hwloc --enable-delayacct --enable-sensors --enable-capabilities
|
2020-10-20 13:27:22 +00:00
|
|
|
- name: Build
|
|
|
|
run: make -k
|
|
|
|
- name: Distcheck
|
2021-02-16 18:34:42 +00:00
|
|
|
run: make distcheck DISTCHECK_CONFIGURE_FLAGS='--enable-werror --enable-openvz --enable-vserver --enable-ancient-vserver --enable-unicode --enable-hwloc --enable-delayacct --enable-sensors --enable-capabilities'
|
2020-10-20 13:27:22 +00:00
|
|
|
|
2021-01-22 18:14:59 +00:00
|
|
|
build-ubuntu-latest-gcc-static:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
# Enable LTO, might trigger additional warnings on advanced inlining
|
|
|
|
env:
|
|
|
|
CFLAGS: -O3 -g -flto
|
|
|
|
LDFLAGS: -O3 -g -flto
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: sudo apt-get install libncursesw5-dev libtinfo-dev libgpm-dev libsensors4-dev libcap-dev
|
|
|
|
- name: Bootstrap
|
|
|
|
run: ./autogen.sh
|
|
|
|
- name: Configure
|
2021-02-16 18:34:42 +00:00
|
|
|
run: ./configure --enable-static --enable-werror --enable-openvz --enable-vserver --enable-ancient-vserver --enable-unicode --disable-hwloc --disable-delayacct --enable-sensors --enable-capabilities
|
2021-01-22 18:14:59 +00:00
|
|
|
- name: Build
|
|
|
|
run: make -k
|
|
|
|
- name: Distcheck
|
2021-02-16 18:34:42 +00:00
|
|
|
run: make distcheck DISTCHECK_CONFIGURE_FLAGS='--enable-static --enable-werror --enable-openvz --enable-vserver --enable-ancient-vserver --enable-unicode --disable-hwloc --disable-delayacct --enable-sensors --enable-capabilities'
|
2020-10-20 13:27:22 +00:00
|
|
|
|
2020-09-21 13:06:19 +00:00
|
|
|
build-ubuntu-latest-clang-analyzer:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
CC: clang-11
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: install clang repo
|
|
|
|
run: |
|
|
|
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | sudo apt-key add -
|
|
|
|
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main' -y
|
|
|
|
sudo apt-get update -q
|
|
|
|
- name: Install Dependencies
|
2020-09-02 12:39:25 +00:00
|
|
|
run: sudo apt-get install clang-11 clang-tools-11 libncursesw5-dev libhwloc-dev libnl-3-dev libnl-genl-3-dev libsensors4-dev libcap-dev
|
2020-09-21 13:06:19 +00:00
|
|
|
- name: Bootstrap
|
|
|
|
run: ./autogen.sh
|
|
|
|
- name: Configure
|
2021-02-16 18:34:42 +00:00
|
|
|
run: scan-build-11 -analyze-headers --status-bugs ./configure --enable-debug --enable-werror --enable-openvz --enable-vserver --enable-ancient-vserver --enable-unicode --enable-hwloc --enable-delayacct --enable-sensors --enable-capabilities
|
2020-09-21 13:06:19 +00:00
|
|
|
- name: Build
|
|
|
|
run: scan-build-11 -analyze-headers --status-bugs make -j"$(nproc)"
|
|
|
|
|
2020-12-04 16:35:41 +00:00
|
|
|
build-macos-latest-clang:
|
|
|
|
runs-on: macOS-latest
|
|
|
|
env:
|
|
|
|
CC: clang
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: brew install automake
|
|
|
|
- name: Bootstrap
|
|
|
|
run: ./autogen.sh
|
|
|
|
- name: Configure
|
|
|
|
run: ./configure --enable-werror
|
|
|
|
- name: Build
|
|
|
|
run: make -k
|
|
|
|
- name: Distcheck
|
|
|
|
run: make distcheck DISTCHECK_CONFIGURE_FLAGS="--enable-werror"
|
|
|
|
|
2020-08-21 08:37:25 +00:00
|
|
|
whitespace_check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: check-whitespaces
|
|
|
|
run: git diff-tree --check $(git hash-object -t tree /dev/null) HEAD
|