summaryrefslogtreecommitdiff
path: root/.github
Commit message (Collapse)AuthorAgeFilesLines
* CI: bump to use latest Ubuntu LTSPeter Hutterer2023-01-113-7/+7
|
* CI: bump an action to the current versionPeter Hutterer2022-12-071-1/+3
| | | | | Squashes the warning about the deprecated set-output, see https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
* CI: update some actions to newer versionsPeter Hutterer2022-12-074-18/+18
| | | | | Node 12 is deprecated so let's switch to the newer version https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
* CI: adjust the artifact names according to the jobPeter Hutterer2022-08-041-2/+4
| | | | | | | | Multiple artifacts with the same name only work if they're in the same job. We use a matrix here, so our resulting artifact is simply whichever job finished last. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: update FreeBSD macos base to macos-12Peter Hutterer2022-07-291-1/+1
| | | | | | | The current 10.15 is about to be deprecated, see https://github.com/vmactions/freebsd-vm/issues/50 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: use the latest FreeBSD major releasePeter Hutterer2022-07-291-1/+1
| | | | | | See https://github.com/linuxwacom/libwacom/pull/511#issuecomment-1198782050 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: upgrade FreeBSD to 13.1 (#507)Jan Beich2022-07-141-1/+1
| | | | FreeBSD doesn't support /latest and /quarterly package repos on EOL versions. 13.0 reaches EOL on 2022-08-31, so avoid CI breakage.
* Revert "CI: pin the meson version to 0.61.4"Peter Hutterer2022-05-051-1/+1
| | | | | | | pip now pulls down meson 0.62.1 with this issue fixed, so let's revert this. This reverts commit 7ff829e07622bb01daaad643f981d29e878a063a.
* CI: pin the meson version to 0.61.4Peter Hutterer2022-04-121-1/+1
| | | | | | | | | 0.62.0 fails meson dist with a python complaint, which has been fixed upstream. But until pip pulls down a fixed version, let's pin meson. See issue https://github.com/mesonbuild/meson/issues/10181 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Make sign-compare a warning/errorPeter Hutterer2022-02-211-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: don't enable -Wall -Wextra in the CIPeter Hutterer2022-02-211-1/+1
| | | | | | | | | | | | | | | This is a leftover from autotools builds, meson uses the warning_level option for this. The net result of our CFLAGS being appended was this sequence: -Wall -Wextra -Wno-foo -Wall -Wextra The second set of -Wall -Wextra undid all the -Wno-foo we carefully selected in meson.build - at least with clang, possibly with gcc too. This means we can now drop -Wno-error=unused-parameter because that's already disabled in meson.build. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* github: build with ninja --verbosePeter Hutterer2022-02-211-1/+1
| | | | | | | Compiler issues are easier to debug in a pipeline when you see the actual command. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* github: bump freebsd workflow to 0.1.5Peter Hutterer2022-01-051-2/+2
| | | | And use macos-10.15 as requested in the README
* CI: add a workflow to check for "sysinfo" in newly added data filesPeter Hutterer2021-12-201-0/+20
| | | | | | | | | This is a simple grep only, we don't need anything fancier since the main goal here is to have the CI alert us that the sysinfo is missing. Fixes #348 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: rename the workflows to something more expressivePeter Hutterer2021-12-132-2/+2
|
* Remove autotools, it's meson only nowPeter Hutterer2021-12-131-69/+17
| | | | | | | This allows us to drop the .gitignore file as well since meson doesn't dirty the git tree. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: drop the pushd srcdir from the meson actionPeter Hutterer2021-12-061-3/+1
| | | | | | meson setup takes a srcdir argument, so let's use that instead Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: add a github pages job for our doxygen outputPeter Hutterer2021-07-261-0/+38
| | | | | | Fixes #102 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: use a YAML-compatible format by defaultPeter Hutterer2021-04-281-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's output something that is both human- and machine-readable. This makes it easier to search for specific devices with YAML parsers, e.g. to select all bluetooth devices one could use: $ libwacom-list-devices | yq '.devices[] | select(.bus == "bluetooth") | .name' Output for list-devices is now: devices: - { bus: 'i2c', vid: '0x056a', pid: '0x5169', name: 'Wacom ISDv4 5169' } ... Output for list-local-devices is now for example: devices: - name: 'Wacom Intuos Pro M' bus: 'usb' vid: '0x056a' pid: '0x0357' nodes: - /dev/input/event24 - /dev/input/event23 - /dev/input/event22 Output for list-compatible-stylis is now for example: - name: 'ISDv4 0163' styli: - { id: '0x1', name: 'AES Pen' } - { id: '0x11', name: 'AES Pen' } - { id: '0x19', name: 'AES Pen' } Note that as shown above, all hex numbers are encoded as strings. This prevents automatic conversion to decimal when using yq or other yaml formatters since the final result of the processing is almost always for human consumption (and thus needs the hex codes). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: remove the postgres apt sources hackPeter Hutterer2021-04-231-6/+0
| | | | | | | Apparently that file is no longer there, so let's hope things work without the hack. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: update freebsd-vm to unbreak buildJan Beich2021-04-061-1/+1
|
* libwacom: allow for duplicates across data directoriesPeter Hutterer2021-03-241-0/+46
| | | | | | | | | | | | | | | | | See #379, there is a use-case for overriding tablet files with existing matches. HUION devices re-use USB IDs but apparently also change those IDs within the same product line - causing clashes with other devices. Right now our duplicate detection prevents any tablet file to have the same match as another one, so a user would have to change two files to get the right match - the one for the device needs the match added and the wrong tablet file needs the match removed. Fix this by allowing duplicate files across data directories and setting /etc as preferred: it's now possible to drop a .tablet file into /etc/libwacom and have that override any matching file from /usr/share. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: change "autogen" for "autotools" in the human-readable specifierPeter Hutterer2021-03-241-3/+3
| | | | | | | autogen.sh is the script we use, but the build system is referred to as "autotools". Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: split the valgrind run into its own jobPeter Hutterer2021-03-241-6/+25
| | | | | | | | | Now that we have custom actions to install and build (see c559076848b) the duplications aren't quite as bad anymore so it's better to have a separate job than mixing it in with the normal build job through custom handling of the meson options. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: name the main workflow "linux"Peter Hutterer2021-03-191-0/+2
| | | | | | Looks better than just using the filename Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: install our list-devices helper toolPeter Hutterer2021-03-191-2/+2
| | | | | | | | | | | | | | Build it twice, once as list-devices, once as libwacom-list-devices. The former uses the source tree's data files, the latter the installed data files. Having this as installed tools makes it easier to debug situations where it's not clear whether the data file is picked up correctly or whether it's not applied correctly to the device. It also makes it easier to figure out "is this device supported by my libwacom version". Fixes #367 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: add a --format argument to list-devicesPeter Hutterer2021-03-191-2/+2
| | | | | | | | | | | | | | | This changes the default output format to a one-line format which is more useful in most cases anyway. Example output: usb:056a:5000:Wacom ISDv4 5000 usb:056a:5002:Wacom ISDv4 5002 usb:056a:5010:Wacom ISDv4 5010 usb:056a:503e:Wacom ISDv4 503E usb:056a:503f:Wacom ISDv4 503F usb:056a:5040:Wacom ISDv4 5040 ... Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: unhardcode pip and install python3 symlink (#373)Jan Beich2021-03-191-1/+2
| | | | | | * CI: unhardcode pip and install python3 symlink FreeBSD only builds py-* packages for default Python version Once PYTHON_DEFAULT is bumped to 3.8, py37-pip will go missing.
* Github CI: use a custom actions installing and meson building (#341)Peter Hutterer2021-03-105-38/+125
| | | | | | | | | | | | | | | | Two github actions are added: pkginstall and meson. They can be trigged with uses: in the CI jobs and standardize the package installs and meson setup jobs. This cuts down on duplication and in theory the same actions can be used by xf86-input-wacom later. A few noteworthy behaviors: - the postgres package repo has to be disabled, it causes random CI failures with a 404 - the precmd approach is a bit weird but it's the easiest way to use sudo on demand. - every run: command starts a new shell, so we can't easily export variables between the various steps Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: update FreeBSD to 12.2 (#343)Jan Beich2021-02-031-1/+1
| | | freebsd-vm@v0.0.7 uses FreeBSD 12.1 which has reached EOL on 2021-01-31. FreeBSD Project doesn't keep old packages for /latest and /quarterly. Once 12.2 packages are built there would be none for 12.1 except for /release_1 which is more than 1 year old.
* Support loading tablet/stylus files from /etc/libwacom/Peter Hutterer2021-01-291-0/+43
| | | | | | | | | | | | | | | | | | | | | | | To add a new .tablet file, a user would have to add that file to /usr/share. This location may be read-only on some systems, and any file there will conflict with files provided by the distribution package. In the best case, the user's file will be overwritten on update, in the worst case a file name change leaves both files in place, causing conflicts. The traditional approach is to have distribution-provided files in /usr and host-specific packages in /etc, so let's do the same here: add /etc/libwacom as default lookup path for .tablet and .stylus files. This requires a change in the file loading: where a directory does not exist we count it as a non-failure and continue. In the CI, we have a set of jobs that split the database in various ways across /usr and /etc. Then we compare the device list before/after the split and expect them to be the same. Fixes #327 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Github Actions: run apt update + install instead of apt-get (#339)Peter Hutterer2021-01-291-3/+3
| | | | | Otherwise we are trying to pull down old packages and failing with 404s Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson: hook up pytest to run testsPeter Hutterer2020-12-012-4/+8
| | | | | | | Only test right now is the udev rules test which requires root, so we're running pytest but skipping all tests. Oh well. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Github Actions: bump to use Ubuntu 20.04Peter Hutterer2020-12-011-3/+3
| | | | | | | Main motivation here: the python-libevdev needs a newer libevdev than is available in 18.04 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Add GitHub Actions with the goal of replacing Travis (#301)Peter Hutterer2020-11-272-0/+177
| | | | | | | | | | | | | | | | | | | | Travis CI is about to severely limit the free tiers. Specifically, we would get 1000 minutes (which at current use would last us a few months) but once they're up, we have to request more on a case-by-case basis. This is not workable. Switch to GitHub actions instead. This patch convers the autogen, meson and build-from-tarball parts over. It does **not** provide: - ppc64le - FreeBSD - coverity In the ppc64le and FreeBSD case I don't know how how to get those working. There doesn't seem to be any available runners for either of those. Coverity is just a matter of porting from travis to the github action syntax. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* github templates: note that a meson.build entry is needed for new filesPeter Hutterer2020-03-091-0/+3
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Add issue templates for github bug reportsPeter Hutterer2018-10-092-0/+50
If the tablet doesn't work, libwacom is the wrong place to file a bug report for. Use an issue template for this purpose to point users to the right repositories. Likewise for new tablet support, let's make the user fill in the bits we'll need the most. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>