Skip to content

Commit ceb41e0

Browse files
authored
CI: more CMake build checks (signal11#450)
Check CMake build on: - Alpine - Archlinux - Fedora/mingw64 - FreeBSD
1 parent 8224a4c commit ceb41e0

File tree

6 files changed

+54
-10
lines changed

6 files changed

+54
-10
lines changed

.builds/alpine.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,29 @@ packages:
66
- eudev-dev
77
- libusb-dev
88
- linux-headers
9+
- cmake
10+
- ninja
911
sources:
1012
- https://github.com/libusb/hidapi
1113
tasks:
12-
- setup: |
14+
- configure: |
1315
cd hidapi
16+
echo Configure Autotools build
1417
./bootstrap
1518
./configure
16-
- build: |
19+
echo Configure CMake build
20+
mkdir -p build install_cmake
21+
cmake -GNinja -B build -S . -DCMAKE_INSTALL_PREFIX=install_cmake
22+
- build-autotools: |
1723
cd hidapi
1824
make
1925
make DESTDIR=$PWD/root install
2026
make clean
27+
- build-cmake: |
28+
cd hidapi/build
29+
ninja
30+
ninja install
31+
ninja clean
2132
- build-manual: |
2233
cd hidapi/linux
2334
make -f Makefile-manual

.builds/archlinux.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,29 @@ packages:
55
- libtool
66
- libusb
77
- libudev0
8+
- cmake
9+
- ninja
810
sources:
911
- https://github.com/libusb/hidapi
1012
tasks:
11-
- setup: |
13+
- configure: |
1214
cd hidapi
15+
echo Configure Autotools build
1316
./bootstrap
1417
./configure
15-
- build: |
18+
echo Configure CMake build
19+
mkdir -p build install_cmake
20+
cmake -GNinja -B build -S . -DCMAKE_INSTALL_PREFIX=install_cmake
21+
- build-autotools: |
1622
cd hidapi
1723
make
1824
make DESTDIR=$PWD/root install
1925
make clean
26+
- build-cmake: |
27+
cd hidapi/build
28+
ninja
29+
ninja install
30+
ninja clean
2031
- build-manual: |
2132
cd hidapi/linux
2233
make -f Makefile-manual

.builds/fedora-mingw.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,29 @@ packages:
55
- libtool
66
- mingw64-gcc
77
- mingw64-gcc-c++
8+
- cmake
9+
- ninja-build
810
sources:
911
- https://github.com/libusb/hidapi
1012
tasks:
11-
- setup: |
13+
- configure: |
1214
cd hidapi
15+
echo Configure Autotools build
1316
./bootstrap
1417
mingw64-configure
15-
- build: |
18+
echo Configure CMake build
19+
mkdir -p build install_cmake
20+
mingw64-cmake -GNinja -B build -S . -DCMAKE_INSTALL_PREFIX=install_cmake
21+
- build-autotools: |
1622
cd hidapi
1723
make
1824
make DESTDIR=$PWD/root install
1925
make clean
26+
- build-cmake: |
27+
cd hidapi/build
28+
ninja
29+
DESTDIR=$PWD/../install_cmake ninja install
30+
ninja clean
2031
- build-manual: |
2132
cd hidapi/windows
2233
make -f Makefile-manual OS=MINGW CC=x86_64-w64-mingw32-gcc

.builds/freebsd.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,29 @@ packages:
66
- libiconv
77
- libtool
88
- pkgconf
9+
- cmake
10+
- ninja
911
sources:
1012
- https://github.com/libusb/hidapi
1113
tasks:
12-
- setup: |
14+
- configure: |
1315
cd hidapi
16+
echo Configure Autotools build
1417
./bootstrap
1518
./configure
16-
- build: |
19+
echo Configure CMake build
20+
mkdir -p build install_cmake
21+
cmake -GNinja -B build -S . -DCMAKE_INSTALL_PREFIX=install_cmake
22+
- build-autotools: |
1723
cd hidapi
1824
make
1925
make DESTDIR=$PWD/root install
2026
make clean
27+
- build-cmake: |
28+
cd hidapi/build
29+
ninja
30+
ninja install
31+
ninja clean
2132
- build-manual: |
2233
cd hidapi/libusb
2334
gmake -f Makefile-manual

.builds/netbsd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages:
77
sources:
88
- https://github.com/libusb/hidapi
99
tasks:
10-
- setup: |
10+
- configure: |
1111
cd hidapi
1212
mkdir -p build install
1313
cmake -B build -S . -DCMAKE_INSTALL_PREFIX=install

.builds/openbsd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ packages:
88
sources:
99
- https://github.com/libusb/hidapi
1010
tasks:
11-
- setup: |
11+
- configure: |
1212
cd hidapi
1313
mkdir -p build install
1414
cmake -GNinja -B build -S . -DCMAKE_INSTALL_PREFIX=install

0 commit comments

Comments
 (0)