CI: more CMake build checks (#450)

Check CMake build on:
- Alpine
- Archlinux
- Fedora/mingw64
- FreeBSD
This commit is contained in:
Ihor Dutchak
2022-09-10 16:56:05 +03:00
committed by GitHub
parent 8224a4cb56
commit ceb41e0abe
6 changed files with 54 additions and 10 deletions
+13 -2
View File
@@ -6,18 +6,29 @@ packages:
- eudev-dev
- libusb-dev
- linux-headers
- cmake
- ninja
sources:
- https://github.com/libusb/hidapi
tasks:
- setup: |
- configure: |
cd hidapi
echo Configure Autotools build
./bootstrap
./configure
- build: |
echo Configure CMake build
mkdir -p build install_cmake
cmake -GNinja -B build -S . -DCMAKE_INSTALL_PREFIX=install_cmake
- build-autotools: |
cd hidapi
make
make DESTDIR=$PWD/root install
make clean
- build-cmake: |
cd hidapi/build
ninja
ninja install
ninja clean
- build-manual: |
cd hidapi/linux
make -f Makefile-manual
+13 -2
View File
@@ -5,18 +5,29 @@ packages:
- libtool
- libusb
- libudev0
- cmake
- ninja
sources:
- https://github.com/libusb/hidapi
tasks:
- setup: |
- configure: |
cd hidapi
echo Configure Autotools build
./bootstrap
./configure
- build: |
echo Configure CMake build
mkdir -p build install_cmake
cmake -GNinja -B build -S . -DCMAKE_INSTALL_PREFIX=install_cmake
- build-autotools: |
cd hidapi
make
make DESTDIR=$PWD/root install
make clean
- build-cmake: |
cd hidapi/build
ninja
ninja install
ninja clean
- build-manual: |
cd hidapi/linux
make -f Makefile-manual
+13 -2
View File
@@ -5,18 +5,29 @@ packages:
- libtool
- mingw64-gcc
- mingw64-gcc-c++
- cmake
- ninja-build
sources:
- https://github.com/libusb/hidapi
tasks:
- setup: |
- configure: |
cd hidapi
echo Configure Autotools build
./bootstrap
mingw64-configure
- build: |
echo Configure CMake build
mkdir -p build install_cmake
mingw64-cmake -GNinja -B build -S . -DCMAKE_INSTALL_PREFIX=install_cmake
- build-autotools: |
cd hidapi
make
make DESTDIR=$PWD/root install
make clean
- build-cmake: |
cd hidapi/build
ninja
DESTDIR=$PWD/../install_cmake ninja install
ninja clean
- build-manual: |
cd hidapi/windows
make -f Makefile-manual OS=MINGW CC=x86_64-w64-mingw32-gcc
+13 -2
View File
@@ -6,18 +6,29 @@ packages:
- libiconv
- libtool
- pkgconf
- cmake
- ninja
sources:
- https://github.com/libusb/hidapi
tasks:
- setup: |
- configure: |
cd hidapi
echo Configure Autotools build
./bootstrap
./configure
- build: |
echo Configure CMake build
mkdir -p build install_cmake
cmake -GNinja -B build -S . -DCMAKE_INSTALL_PREFIX=install_cmake
- build-autotools: |
cd hidapi
make
make DESTDIR=$PWD/root install
make clean
- build-cmake: |
cd hidapi/build
ninja
ninja install
ninja clean
- build-manual: |
cd hidapi/libusb
gmake -f Makefile-manual
+1 -1
View File
@@ -7,7 +7,7 @@ packages:
sources:
- https://github.com/libusb/hidapi
tasks:
- setup: |
- configure: |
cd hidapi
mkdir -p build install
cmake -B build -S . -DCMAKE_INSTALL_PREFIX=install
+1 -1
View File
@@ -8,7 +8,7 @@ packages:
sources:
- https://github.com/libusb/hidapi
tasks:
- setup: |
- configure: |
cd hidapi
mkdir -p build install
cmake -GNinja -B build -S . -DCMAKE_INSTALL_PREFIX=install