Commit graph

85 commits

Author SHA1 Message Date
Eberhard Beilharz
0b4ade8018
fix(linux): Fix path to artifacts
With the new download-artifact version when using `merge-multiple:true`
all artifacts end up in the same directory. This change adjusts for that.

Another follow-up of #10577.
2024-02-02 12:07:02 +01:00
Eberhard Beilharz
31ef12706e
chore(linux): Fix the path for downloading artifacts
Follow-up of #10577.
2024-02-01 10:37:18 +01:00
Eberhard Beilharz
cb8f68012c
chore(linux): Upgrade artifacts to v4
- Upgrade upload-artifact to v4.3.0
- Upgrade download-artifact to v4.1.1
- Upgrade checkout to v4.1.1
- Upgrade gha-deb-signing to v0.6

Closes #10385.
2024-01-31 16:38:48 +01:00
Eberhard Beilharz
325ab78881
chore(linux): Replace Lunar with Noble
This change removes Ubuntu 23.04 Lunar and adds support for
Ubuntu 24.04 Noble.
2024-01-30 15:40:41 +01:00
Eberhard Beilharz
15d87963b2
chore(core): Ignore C++ symbols
We have a C API, but (internal) C++ template instantiations are visible
and so get flagged by `dpkg-gensymbols`. This change ignores the one
use of C++ by marking it optional. This is listed as a usage scenario
in the dpkg-gensymbols man page.

Note this requires a change how we call dpkg-gensymbols: if the `-O`
parameter is specified, the file is not treated as being a template file
(see man deb-src-symbols) and so the tags are not interpreted.
Additionally the file gets overwritten with the non-tag version. So this
change removes the `-O` parameter, and changes the archiving of the
generated file.
2024-01-15 18:47:53 +01:00
Eberhard Beilharz
30c9aff4ca
chore(linux): fix GHA packaging 2024-01-11 16:16:41 +01:00
Eberhard Beilharz
b5820ffb9e
chore(linux): Output dput exit code after upload to llso
This is an attempt to understand what's going wrong in the gha.
2024-01-10 08:14:15 +01:00
Eberhard Beilharz
9c8566658e
chore(linux): Cleanup tmpfile 2024-01-09 08:47:03 +01:00
Eberhard Beilharz
4aecb28ac4
chore(linux): Retry llso upload
Occasionally name resolution temporarily fails when trying to upload to
llso. This change retries 10 times before giving up.
2024-01-08 15:13:28 +01:00
Darcy Wong
3f213c99d2 chore(common): Specify Keyman repo on GitHub actions 2023-12-11 10:24:30 +07:00
Eberhard Beilharz
afc63278b8
chore(linux): Address code review comments 2023-11-13 18:14:55 +01:00
Eberhard Beilharz
0967e120d3
Merge branch 'master' into chore/linux/9801_coreversion 2023-11-04 21:49:33 +07:00
Eberhard Beilharz
33eae05cb0
Merge branch 'master' into fix/linux/9878_fixpkgenv 2023-11-04 21:35:52 +07:00
Eberhard Beilharz
517c300abc
chore(linux): Revert to repository_dispatch
This addresses code review comments. Also add readme how to manually
trigger a GHA build, e.g. for testing changes to the GHA.
2023-11-02 22:42:49 +07:00
Eberhard Beilharz
6adfa8a9cf
fix(linux): Fix environment for Debian packages
When didn't set the correct environment when building Debian packages
with GitHub actions. The version information wasn't included in the
source file but instead was generated at binary package build time,
at which time not all necessary environment variables were available.
This change will create a patch file on-the-fly which gets
included in the source package that contains the correct information.

Fixes #9878.
2023-11-02 22:18:02 +07:00
Eberhard Beilharz
30250e3d8d
chore(linux): Enhance GHA API check
This change adds additional checks for the symbols file:

- if a line with a method name gets changed, the package version number
  in that line also needs to be updated
- for major API changes (methods renamed or removed) the API version
  numbers needs to be incremented
- the API version numbers in the .symbols file and in `CORE_API_VERSION.md`
  need to match
2023-10-26 18:04:43 +02:00
Eberhard Beilharz
1a2a85affd
chore(linux): Use workflow_dispatch instead of repository_dispatch
This makes it possible to manually trigger workflow runs.

Closes #9548.
2023-10-26 17:16:05 +02:00
Eberhard Beilharz
2e5e586860
chore(linux): Rename libkmnkbp0-0 package
Also removes the temporary libkeymancore/libkmnkbp hack that we put in
for packaging GHA.

Closes #9733.
2023-10-20 17:31:39 +02:00
Eberhard Beilharz
fdc9baadb2
chore(linux): Merge remote-tracking branch 'origin/master' into chore/linux/9733_RenameLibknmkbp 2023-10-20 12:31:14 +02:00
Eberhard Beilharz
1c639e80ea
chore(linux): Update packaging GHA
This enhances the packaging GHA to be able to verify the renamed
core library. Since the GHA packaging build always uses the action
definition from `master` this change has to land before we can
successfully build the PR that does the actual renaming of the core
library and Debian package. Later we can remove the references to
`libkmnkbp0-0` again.

Part of #9733.
2023-10-20 09:56:39 +02:00
Eberhard Beilharz
52bb859817
chore(linux): Rename (lib)kmnkbp to (lib)keymancore 2023-10-19 10:35:09 +02:00
Eberhard Beilharz
46d67d944e
chore(linux): Re-enable building for Ubuntu 23.10 Mantic
Now that we have updated ibus packages in place we can re-enable building
for Mantic.

Fixes #9520 and #9398.
2023-10-17 18:48:53 +02:00
Eberhard Beilharz
9a0160746b
chore(linux): Prevent warning during packaging
This change updates gha-ubuntu-packaging to a version that creates
a non-empty changelog entry. This prevents a warning during
package build.
2023-09-21 16:35:33 +02:00
Darcy Wong
1127071d65
Merge pull request #9410 from keymanapp/chore/gha-crowdin-daily
chore(common): Update crowdin GHA to trigger daily
2023-08-04 06:48:30 +07:00
Eberhard Beilharz
464f702b00
Merge pull request #9400 from keymanapp/chore/linux/gha-environment
chore(linux): Properly treat test builds with packaging GHA
2023-08-03 09:25:33 +02:00
Darcy Wong
ca1c15c8bd chore(common): Update crowdin GHA to trigger daily 2023-08-03 14:20:14 +07:00
Eberhard Beilharz
1289a54691
chore(linux): Properly treat test builds with packaging GHA
Previously GHA builds always used the "local" environment. This
change now detects test builds as well as release builds and properly
sets the environment.
2023-08-02 12:12:26 +02:00
Eberhard Beilharz
e37d5388af
chore(linux): Remove Kinetic from GHA
Don't build Ubuntu 22.10 Kinetic with packaging GHA.

Also prepare for Ubuntu 23.10 Mantic - we can't currently
build that because they are trying to get ibus 1.5.29-beta
to work on so there are often new packages. We wait until that
stabilized before we're providing a new patched ibus version
at which point we can enable building for mantic.
See also #9398.
2023-08-02 10:23:05 +02:00
Marc Durdin
1566c14881 chore: try another variable for reporting 2023-08-02 09:57:42 +07:00
Marc Durdin
a010507a3f chore: add run-name to deb-packaging 2023-08-02 09:36:56 +07:00
Eberhard Beilharz
9afbbcd7f9
fix(linux): Fix packaging GHA
Revert to relative paths.
2023-07-04 19:35:48 +02:00
Eberhard Beilharz
f1989b65b6
fix(linux): Fix packaging GHA
Next iteration of fixing packaging GHA.
2023-07-04 16:53:33 +02:00
Eberhard Beilharz
2ab9777c07
fix(linux): Fix packaging GHA
Use absolute path to source directory.
2023-07-04 15:51:00 +02:00
Eberhard Beilharz
32a77eb2c2
fix(linux): Another attempt to fix packaging GHA
This works around the permission problem we got with the previous
commit.
2023-07-03 20:02:22 +02:00
Eberhard Beilharz
4bd0b40de6
fix(linux): Fix packaging GHA
The previous version of gha-ubuntu-packaging was faulty.
2023-06-30 17:56:28 +02:00
Eberhard Beilharz
dc22af5b47
fix(linux): Fix GHA package builds for non-Jammy dists
Fixes #9024.
2023-06-28 19:11:43 +02:00
Darcy Wong
bb8087c751 chore(common): Bump crowdin github action to 1.3.2 2023-06-16 05:55:25 -05:00
Eberhard Beilharz
a6c4c0763b
chore(linux): Properly set variables in GHA 2023-05-30 19:01:10 +02:00
Eberhard Beilharz
29a35f1b31
chore(linux): Add missing dependency to GHA
Since we reference `sourcepackage` in the upload-to-llso step it
should be listed in the `needs` list.
2023-05-23 10:27:40 +02:00
Eberhard Beilharz
cb0b7535b1
chore(linux): Build for Lunar on all platforms
Add building and upload to llso/pso now that this is possible.
2023-05-05 13:02:15 +02:00
Marc Durdin
eb344c235f chore(linux): fixup build-utils ref in gha workflow 2023-03-13 08:43:50 +07:00
Eberhard Beilharz
24e07f2d9b
chore(linux): Remove debug output from packaging GHA 2023-03-06 08:50:25 +01:00
Eberhard Beilharz
3541f3080f
chore(linux): More GHA debugging 2023-03-02 10:44:13 +01:00
Eberhard Beilharz
718133d3aa
chore(linux): More debug output 2023-03-01 10:12:21 +01:00
Eberhard Beilharz
ea4ec8437e
chore(linux): Add debug output 2023-02-27 17:46:27 +01:00
Eberhard Beilharz
99fd8b8f3d
chore(linux): Add trust for gpg key 2023-02-27 17:11:22 +01:00
Eberhard Beilharz
8fef2a5c28
fix(linux): Fix upload in packaging GHA
Missed a fairly important step :-).
2023-02-23 20:21:28 +01:00
Eberhard Beilharz
43d49cde35
fix(linux): Fix paths in upload action of packaging GHA 2023-02-21 19:39:32 +01:00
Eberhard Beilharz
38d3eb7ff7
chore(linux): Cleanup GHA
`deb_signing` only runs for release builds, so it doesn't make
sense that `set_status` (which only runs for non-release builds)
depends on it.
2023-02-21 10:17:00 +01:00
Eberhard Beilharz
c303a7743d
chore(linux): Improve deb-packaging GHA
This change eliminates the need to checkout the Keyman source repo
on the self-hosted runner. The checkout previously timed out, and
the only reason we need it was the `apt-install` action. So now
we directly call `apt install` instead of using the action.
2023-02-21 09:14:11 +01:00