Commit Graph

74 Commits

Author SHA1 Message Date
cb0f12d5d0 ci: Fix typo to actually not install recommended packages in build_docs
Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/647>
2024-04-26 16:26:36 +02:00
b99b6a418c CI: Add workaround for dependencies removed from Debian Testing
to make it possible for CI to pass, until Squeekboard has been ported to
GTK4 or GTK4-layer-shell.

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/633>
2024-04-03 17:16:55 +02:00
0bc1ad4eaf CI: Install 'serde-yaml 0.9' from experimental
To make it possible for the CI to pass, during the transition
from 'serde-yaml 0.8' to 'serde-yaml 0.9' in Debian Trixie.

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/624>
2024-03-22 12:05:15 +01:00
7a55dce839 CI: Install build-dependencies in 'build_reference'-CI-job
Since the update of 'serde_yaml' from 0.8 to 0.9,
the build-dependencies are required to complete this CI-job.

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/624>
2024-03-22 12:03:49 +01:00
15ebd0ffaf Switch to glib v2_58
Remove the ancient fallbacks

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/621>
2024-03-10 17:37:52 +01:00
3bdcc4326c ci: Add features to reference build
The whole build still targets ancient glib_v0_14 so pass that on until
squeekboard supports running with glib_v2_70 or anything else halfway
recent.

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/620>
2024-03-10 15:44:28 +00:00
9c302a9131 ci: Switch to Debian trixie
Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/620>
2024-03-10 15:44:28 +00:00
f64ea8f085 ci: Always use noninteractive debconf backend
This avoids plenty of warnings when installing dependencies

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/619>
2024-03-10 11:12:04 +01:00
ff79647f05 ci: Cancel running jobs
No need to have parallel pipelines when updating a job.

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/619>
2024-03-10 11:12:04 +01:00
cc18ec727c ci: Use Debian trixie for the doc build
This allows us to use the available package, no need for pip.

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/619>
2024-03-10 10:36:54 +01:00
0e8128d021 ci: Drop lintian check
Packging details should be checked in the distros. Let's not waste CI
resources here.

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/619>
2024-03-10 10:34:02 +01:00
ad69bd5b59 Use newer dependencies everywhere
No need to copy them in most of the jobs

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/619>
2024-03-10 10:31:37 +01:00
2d532aa0ff ci: Stop building byzantium debs
This is Debian oldstable based and hence to cumbersome to support
upstream.

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/619>
2024-03-10 10:28:16 +01:00
71c27d94b5 Change branch-name from 'master' to 'main' 2024-03-09 11:57:32 +01:00
dcz
afe6a6cf74 Merge branch 'orphans' into 'master'
tests: Check for orphaned layout files

See merge request World/Phosh/squeekboard!574
2022-09-29 16:25:47 +00:00
d26927dc44 tests: Check for orphaned layout files
This adds a test which scans the layouts directory for files which have not been added to the resources file.
The majority os user-submitted layouts don't include layout registration, and I ran out of ideas for how to make it more visible in the documentation. Instead, it's going to be solved on the other side: the CI pipelines shall fail.

To make it easy on experimenters with untidy trees, it's disabled by default.
2022-09-15 14:13:40 +00:00
7c17f64517 CI: target bookworm for "future" job
Bookworm will be the basis for the next PureOS.
Plus, there was some persistent network error when running sid jobs.
2022-09-02 10:20:30 +00:00
a8fe4a492e ci: Use bookworm for online builds
PureOS carries rather old versions of rustc and cargo. Attempting to build fails at transitive dependencies, and it's easier to upgrade the compiler than to track down and hold offending depencencies as they come.
2022-06-29 14:59:45 +00:00
0e2d459d5a CI: Add gitlab pages deployment 2022-04-09 18:34:14 +00:00
89ad302255 CI: Build Rust code reference 2022-04-09 18:34:14 +00:00
7f4c823c1e ci: Allow failure on sid 2022-04-04 17:54:31 +00:00
Tor
417fe35e91 Make compatible with latest cargo deps 2022-01-30 17:47:57 +00:00
506df8cf15 CI: Use byzantium as the base
Bookworm diverged from Byzantium, leading to incompatible dependencies.
2022-01-24 19:12:51 +00:00
6dae43b437 ci: Use bookworm image
The image for x86_64 is a custom one from the registry.
2021-12-17 14:04:58 +00:00
c54b6e2d3b ci: Make indentation close to original again 2021-12-17 11:21:19 +00:00
4a7dc799be ci: Fix formatting
At the same time, reduce indentation level on lists because otherwise the formatter is broken.
2021-12-16 14:03:16 +00:00
b2485c343a Revert "ci: Use bookworm image"
This reverts commit d7e27bc793.

Bookworm breaks build because it ships a newer version of rustlib-regex than supported.
2021-12-16 12:47:51 +00:00
dcz
ac3f390cc6 Merge branch 'ci_b' into 'master'
ci: Use byzantium image

See merge request World/Phosh/squeekboard!500
2021-12-16 01:52:36 +00:00
dcz
9f74e95cef Merge branch 'ci_c' into 'master'
ci: speed improvements

See merge request World/Phosh/squeekboard!505
2021-12-16 01:52:08 +00:00
7a07f1616d ci: Include pre-build style check 2021-12-09 11:42:33 +00:00
f986f14220 ci: Reformat yaml file
Includes a formatter script
2021-12-09 11:42:12 +00:00
d7e27bc793 ci: Use bookworm image
The image for x86_64 is a custom one from the registry.
2021-12-08 20:29:25 +00:00
cd869e323e ci: Add git revision and CI pipeline number to .deb artifacts 2021-12-08 19:54:48 +00:00
e380179144 ci: Start lintian test right after deb build
The arm64 build often takes a longer time than the rest, so there's no reason to wait for it in the default staged configuration.
2021-12-08 19:20:23 +00:00
b8fece97d9 ci: Move release test to the start 2021-12-08 19:19:15 +00:00
f9c15845a1 ci: Use cached artifacts in the test
gitlab changed how it interprets the "needs" directive, which caused cargo to recompile. Using cached _build directory saves about 2 minutes.
2021-12-08 19:19:07 +00:00
f922374e27 gitlab-ci: Add PKG_ONLY
This allows for easy package builds saving resources.
2021-12-04 17:58:14 +01:00
dd708456ff Move style-check to separate script
This avoids having to copy out of .gitlab-ci.yml before submitting an MR
to do a style check.

Could become a meson target at some point.
2021-11-23 18:16:36 +01:00
31f8e4e49f gitlab-ci: Drop build for outdated distributions 2021-08-07 10:56:39 +02:00
2c662e0630 gitlab-ci: Adjust CI tags
This makes it build on GNOME infra
2021-08-07 10:54:27 +02:00
153f9c39e5 lint: Check for missing braces
The `eek/layersurface.c` file should be excluded because it's an imported, "foreign" source, but clang-tidy doesn't seem to have an annotation for that.

An alternative would have been to exclude it in Meson and do the check there, but that requires clang-tidy, raising the barrier to contribute of Squeekboard even more (it already requires libfeedback, which isn't packaged widely).
2020-10-20 11:34:17 +00:00
bd661bd4f4 gitlab-ci: Enable --Werror
This makes sure we don't have more warnings creeping in
2020-09-11 18:16:30 +02:00
93ff086e3a ci: Re-add x64 Buster build 2020-06-28 17:38:10 +00:00
67d8926913 ci: Add amber job 2020-06-25 16:17:16 +00:00
ecfc45c2de build: Make compatible with Debian Bullseye
This commit is a bit bigger than it could have: Meson changes could have gone in separately from CI and Debian.

This commit looks more complicated than it should reasonably be. Alas, Cargo is a piece of work, and it doesn't let honest people just choose different versions of dependencies, leading to a cascade of misery. Several things were tried to curb the disaster:

- Cargo [feature] supports choosing dependencies, but doesn't support specifying dependency versions
- Cargo has a cfg() syntax in sections for choosing dependencies by build options, but it explicitly doesn't support selecting on features…
- Cargo allows choosing different dependencies based on features, so perhaps dependencies with different versions could live in stub crates pulled in as needed? Nope! If a dependency doesn't exist in the repo (and that's the point here), Cargo throws up its hands.

This means Cargo.toml needs to be generated based on the build type. More misery:

- we lose the simplicity of just doing `cargo.sh` for simple housekeeping like deps updates. HACKING.md was updated to reflect that. Perhaps that's inevitable - build options need to be like this.
- Some flaky adjustments needed in `cargo.sh` because of an additional argument that can be mistaken for an argument to the exec in `cargo run`.
- Specifying a custom `Cargo.toml` means Cargo can no longer find any tests, examples, benchmarks, or binaries, because it searches relative to the directory of `Cargo.toml`, which is now the build dir. Extra care needed to not forget about them now.

As soon as Cargo allows anything better for managing deps versions, the above should be undone in its favor.

Good side is that a couple bugs went away:

- build flags not always making it to Cargo
- arm64 builds were optional while they shouldn't
- test layouts in unit tests are loaded from an explicit directory now

The Bullseye versions of dependencies are canonical now, Buster considered legacy.
2020-06-24 15:51:21 +00:00
0f7ff1636d CI: Fix typo 2020-03-07 11:17:25 +00:00
9f6fe8318c CI: Test that any bump to changelog has a corresponding tag
Prevents forgetting to sign the tag, which is currently done out of band and independently of review.
2020-02-28 12:14:18 +00:00
99b1439d08 Use pip to install recommonmark 2020-01-30 16:51:35 +01:00
60c68dbf5a ci: Clean up .. before it's searched for artifacts
GitLab doesn't always clean up the `..` directory, leaving things that are lated picked up as artifacts. The new rule cleans up anything that looks like an artifact before fresh ones are generated.
2020-01-14 18:47:04 +00:00
c3c1e1c76d CI: Use Librem5 arm64 runner 2020-01-07 14:39:30 +00:00