40 Commits

Author SHA1 Message Date
Ihor Dutchak
3425db0fee CI: Install awk on Fedora for Autotools (#739) 2025-05-07 11:26:15 +03:00
Ihor Dutchak
8c9cbf6c02 Fix CI build on latest Archlinux (#733) 2025-04-04 18:44:06 +03:00
Ihor Dutchak
122ecb023a Simplify doxygen installation (#723) 2025-03-02 21:55:07 +02:00
Ihor Dutchak
424d63fb29 Update docs.yaml (#722)
Fix build with latest GithubActions.
2025-03-02 21:42:01 +02:00
Ihor Dutchak
ba28d382cb Update upload-artifact action to v4 (#693)
- to match recently updated download-artifact (v3 is incompatible with v4);
- actions/upload-artifact@v3 is scheduled for deprecation on November 30, 2024;
2024-09-15 18:46:31 +03:00
dependabot[bot]
f2e8d41e06 build(deps): bump actions/download-artifact from 3 to 4 in /.github/workflows (#691)
As recommended by @dependabot.
2024-09-06 12:03:35 +03:00
Ihor Dutchak
6c2de30431 Switch to macos-13 for Coverity
Apparently `macos-latest-large` is only available for payed accounts.
2024-04-28 13:45:39 +03:00
Ihor Dutchak
bda710178d Explicitly use non-ARM64 macOS runner
As of recently, `macos-latest` runner switched to macOS-14-arm64 host, and Coverity (at least currently available image) only works on Intel/x86_64-based systems.
`macos-latest-large` macOS runner is Intel-based, as per documentation.
2024-04-28 12:50:07 +03:00
Moritz 'Morty' Strübe
4168d87521 Fix the windows build by fixing printf related issues (#641)
- Fix printf/string-related issues
- CI: Turn on -Wformat-signedness for GNU-cc
- Windows: Assert that struct has the correct size
2023-11-17 13:59:40 +02:00
JoergAtGithub
3c04eacbca Added clang-cl build to CI (#631)
- Using -G"NMake Makefiles", because I couldn't get the other generators to work with clang-cl
- ASAN=off because it's not supported by clang-cl yet
2023-10-26 20:02:01 +03:00
Ihor Dutchak
1ba21cee74 Fix Ubuntu Coverity check (#626) 2023-09-18 14:27:20 +03:00
Ihor Dutchak
09ab35ffa9 CI: Fix Archlinux build (#610)
Apparently when installing/upgrading packages on Archlinux - need to explicitly make sure `glibc` is upgraded as well.

Fixes: #607
2023-08-14 13:10:17 +03:00
Ihor Dutchak
5fd7a79b37 Refine CTest args (#606)
- don't use `--rerun-failed` - it only makes sense on subsequent runs of the test, when checking of failed tests got fixed;
- add `--no-compress-output` - to avoid stripping test's output of failure;
2023-08-05 16:19:00 +03:00
Ihor Dutchak
d0856c05ce Fix Windows CI (#598)
`refreshenv` stopped working in PowerShell context
2023-07-03 17:27:27 +03:00
Ihor Dutchak
d3013f0af3 Weekly runs for Coverity Scan (#565) 2023-05-22 13:50:06 +03:00
Ihor Dutchak
60fd395a4a Multi-platform Coverity build (#557) 2023-05-20 22:04:30 +03:00
Ihor Dutchak
5fa9ec83b2 Windows scans with Coverity (#553) 2023-05-14 23:46:17 +03:00
Ihor Dutchak
f0211fb752 Linux scans with Coverity (#548) 2023-05-14 00:26:12 +03:00
Ihor Dutchak
6f145cef32 macOS scans with Coverity (#546) 2023-05-13 23:55:58 +03:00
Ihor Dutchak
62ba4f2ad3 Add stub for Checks workflow 2023-05-12 22:40:38 +03:00
Ihor Dutchak
45a4ba5b38 ci: Docker build for Alpine (#537)
Use GithubActions Docker build for Alpine builds.
To avoid using `builds.sr.ht`.
Closes: #476
2023-05-01 13:22:19 +03:00
Ihor Dutchak
4acef346c2 ci: Docker build for Archlinux (#536)
Use GithubActions Docker build for Archlinux builds.
To avoid using `builds.sr.ht`.
Related: #476
2023-05-01 13:10:32 +03:00
Ihor Dutchak
df12234504 ci: Docker build for Fedora/Mingw (#535)
Use GithubActions Docker build for Fedora/Mingw builds.
To avoid using `builds.sr.ht`.
Related: #476
2023-05-01 12:56:27 +03:00
Brendan
e65402ff46 Automate doxygen builds (#521)
- updated the doxyfile using doxygen -u
- include hidtest/test.c as a doc'd example
- use a brief doxygen/main_page.md file as the generated site's main page
- strip absolute paths from doxygen output (which now displays as relative paths to repo root)
- add CI to build the docs and save as a CI artifact and rewrite the contents of the gh-pages branch for deployment (for master builds)
- add some missing docstrings and excluded undocumented "helper macros" to satisfy warnings output in doxygen's build log
2023-04-05 12:41:14 +03:00
Ihor Dutchak
f81d485fc9 Initial Doxygen CI (fix folder) 2023-04-04 23:36:10 +03:00
Ihor Dutchak
26b5bb0ccf RFC: add hid_get_report_descriptor API function (#451)
- native implementations for hidraw/libusb/macOS;
- HID Report Descriptor reconstruction from HIDP_PREPARSED_DATA on Windows;
- unit-tests for some known devices for `hid_winapi_descriptor_reconstruct_pp_data`;
- support for ASAN builds (mainly to check the `hid_winapi_descriptor_reconstruct_pp_data`/its unit-tests;
2023-03-12 14:45:30 +02:00
Ihor Dutchak
fa8b961c6e Upgrade checkout and file-existence-action actions (#494)
The old versions are deprecated due to usage of Node.js 12.
2023-01-06 00:59:25 +02:00
JoergAtGithub
c1b78dd9b1 Fix typo in GitHub workflow (#495) 2023-01-06 00:58:38 +02:00
Ihor Dutchak
c3a6150d88 CI checks for CMake package files (#485)
Add build steps to check different flavours of the CMake package builds.
2023-01-02 15:22:01 +02:00
Ihor Dutchak
8068574ee1 Add meson.build as a wrapper over CMake (#410)
- not an independent build system, but a wrapper over CMake;
- may be used as a standalone Meson build or as a subproject;
2022-09-10 16:52:46 +03:00
Ihor Dutchak
52fa87300b Windows build artifacts with Github Actions (#414)
- a straight-forward build matrix for Appveyor;
- MSBuild builds with Github Actions;
- Visual Studio 2022 support for `.sln` (toolset v143);
- gather Windows build artifacts with Github actions;
2022-05-08 19:59:39 +03:00
Ihor Dutchak
c95795ab5c Fix hidtest build
- fix including platform-specific includes when HIDAPI is a CMake subdirectory;
- check libusb and winapi platform-specific headers with hidtest;
2022-05-05 14:53:17 +03:00
Ihor Dutchak
52c728acf4 Use propper type for mach_port_t default param
- enable compilation warnings as errors for CI to catch such issues in the future;
- fix Mingw strict compilation warnings;
2022-05-05 14:53:17 +03:00
Ihor Dutchak
75aafc3ac9 CI: check for new headers installation 2022-02-25 11:45:27 +02:00
Ihor Dutchak
97887cf2eb Upgrade build script for Windows Server 2022 2022-02-25 11:45:27 +02:00
Ihor Dutchak
aaf5f3d172 add libusb-specific hid_libusb_wrap_sys_device
Rationale: on Android one must use UsbManager, to access any
USB device. As a result, libraries like libusb can only use file descriptors
that are provided by UsbManager.
libusb has an API to use such file descriptors: hid_libusb_wrap_sys_device.
Having hid_libusb_wrap_sys_device currently is the only way to make hidapi
work on Android without root access and without custom Android builds.

Relevant info: https://github.com/libusb/libusb/pull/830/files
2021-09-18 18:56:56 +03:00
Ihor Dutchak
ac8c9e5f94 Ubuntu CI: apt update before apt install 2021-07-26 13:31:09 +03:00
Ihor Dutchak
dd2db8e2bb CI: more CI for CMake
- Linux CMake build;
- Windows MSVC build;
- Windows NMake build;
- Windows MinGW build;
2021-07-04 00:10:29 +03:00
Ihor Dutchak
f5ada42915 CI: macOS build for CMake 2021-07-03 20:38:58 +03:00
Ihor Dutchak
916fad56fe macOS: use GitHub action CI instead of Travis-CI (#223) 2020-12-13 23:01:46 +02:00