Commit Graph

223 Commits

Author SHA1 Message Date
Matthieu Gautier 7086009a0a We don't need to upload to bintray now. 2022-06-10 10:11:01 +02:00
Matthieu Gautier 51ff5e58bb Be able to make the release of libkiwix on android. 2022-06-09 10:31:09 +02:00
Matthieu Gautier 72c271a74c Remove LibkiwixApp
The project was used to assemble all android compilation in one
multiplatform java archive.

This allow use to remove android_sdk and Gradle builder
2022-06-09 10:28:59 +02:00
Matthieu Gautier 733a730877 Do not notarize macos build on CI.
We still sign macos build on nigthly and release.
2022-05-17 18:05:43 +02:00
renaud gaudin f103cddd77 Trust codesign using the certificate
When build_release_nightly calls codesign to sign libzim.7.dylib, it appears to be
hanging forever.
What's most likely happening is that Keychain Access is prompting a password request
without any possibility to answer, given this is running on the CI.

It's unclear whether Keychain Access wants to confirm codesign can access the certificate
or if it is trying to unlock another (System) keychain to find the certificate or key.

This addresses the former.
2022-05-12 14:58:46 +00:00
renaud gaudin 8ec2cd9a11 Using sftp for mkdir step
As there is no shell, use SFTP's mkdir command to create the folders up to final path.
2022-04-04 13:53:20 +00:00
renaud gaudin 1351fc7f8b Target uploads to new dropbox address
SSH server which was used to receive file uploads (CI, nightly and release) has been
migrated to a new one on a different address.
Username, Key and paths are unchanged.
Most notable changes are the use of `master.download.kiwix.org` as the target in
replacement of `mirror.download.kiwix.org` (although it would still work) and the
Port to which SSH is listening on (30022 instead of 22)
2022-03-30 22:10:06 +00:00
Matthieu Gautier 90c2705b0e Fix workflow triggering in releaseNigthly workflow.
GITHUB_PAT is needed (and not needed for flatpak)
2022-03-28 10:49:14 +02:00
Matthieu Gautier f1ac1b0121 Build everything using bionic instead of xenial 2022-03-11 15:05:25 +01:00
Matthieu Gautier 32f1bfdab3 Do not force a specific version of meson.
We were forcing a spcefic version has a workaround to meson issue.
We don't need now, and recent version is needed to compile on armhf.
2022-03-11 15:04:17 +01:00
Matthieu Gautier 64ea01e445 [CI] Do not build zim-tools on armhf
zim-tools depends of docopt which need a recent enough version of gcc (4.9)
But we are using gcc 4.8.3 to cross compile on armhf.
2022-03-10 18:16:39 +01:00
Matthieu Gautier 6505e82c37 [CI] Do not build zim-tools on macOS cross-compilation target.
We still build zim-tools on macOs with native build.
2022-03-10 16:57:56 +01:00
Matthieu Gautier af3cff6aeb Build flatpak in CI 2022-03-10 16:21:14 +01:00
Matthieu Gautier cdf4dab0a5 Cross compile windows on fedora 35. 2022-03-10 15:19:51 +01:00
Matthieu Gautier 01e8f92348 Build the projects in the CI.
We used to build only the base dependencies in the CI
(and build the projects in nightly&Release workflow).
Now always build the projects.
2022-03-10 15:19:51 +01:00
Matthieu Gautier 0fb7dc63a7 Correctly detect if project is openzim or kiwix organization 2022-02-02 16:10:28 +01:00
Matthieu Gautier 5e6f68a3ef Use python 3.8 on macOS CI
Python 3.6 is not available anymore.
2022-02-02 15:18:20 +01:00
ChrisLi 1374e01c7a Make the CI build the new on the new MacOS archs. 2021-12-22 15:26:01 +01:00
Matthieu Gautier c78d5bbc72 Force version of python's module on xenial.
Xenial's python is 3.5 and recent versions of used python modules are
not supporting python 3.5 anymore.
We have to force specific versions for gcovr and its dependencies.
2021-10-19 11:28:26 +02:00
Matthieu Gautier 9c04df4fb2 [CI] Install automake and autoconf on macos. 2021-07-27 16:45:04 +02:00
Matthieu Gautier aa349a18e7 Rename kiwix-lib to libkiwix.
The new name of kiwix-lib is libkiwix. Let kiwix-build adopt the name.
2021-06-30 16:45:54 +02:00
Matthieu Gautier 43024859b1 Directly set the env variable in the docker file.
When running from the CI, .bashrc is not sourced so we must set the
env variable at docker file level.
2021-06-29 16:06:53 +02:00
Matthieu Gautier ed999d61af [CI] Do not try to install packages in the CI.
On the CI, packages should be already installed.
Don't try to install with kiwix-build.
2021-06-23 17:27:52 +02:00
Matthieu Gautier 73e0cec0aa Update bionic docker image to use qt 5.15 instead of default qt version. 2021-06-23 17:27:52 +02:00
Matthieu Gautier c445db171b Package zimrecreate in zim-tools. 2021-06-10 14:25:54 +02:00
Matthieu Gautier 1845879825 Add all files of zim-testing-suite to the generated base_deps archive. 2021-05-04 14:36:15 +02:00
renaud gaudin 079e03473b Change time server in workflow
For the past week, the Release&Nightly workflow failed on macOS native_mixed
(but not on native_dyn) when calling ntp to sync clock before signing.
Calling time.apple.com resulted in a DNS error, leading to an error in ntp call

Why this fails on native_mixed is unknown. Maybe because it's being called twice
from the same (I guess) host in a short interleave?

This attempts to fix this by:
- using google's time server instead of Apple's
- correctly setting the timeout param before the server name (although not relevant
for this dns-based error)
- Ignore failures to sync time. We're doing it to minimize chances of unsynched clocks
to fail the signature but this is not absolutely required all the time.
2021-03-23 12:46:20 +00:00
renaud gaudin 0de55705cf allow more time for ntp server to respond 2021-02-16 12:18:09 +00:00
renaud gaudin b3f66e0ac0 time update requires sudo 2021-02-15 09:42:50 +00:00
renaud gaudin fd590a5b4b fixed syntax for macOS signing 2021-02-11 08:06:06 +00:00
renaud gaudin ea55cac32d Fixed #469: Notarizing libzim release for macOS
This adds the notarization (see #469) of the libzim binary for macOS during the build.
It it not dependent on RELEASE so it benefits all builds.

It basically does two things:
- sign the build with our Developer ID certificate from Apple.
- Request notarization from Apple for the binary.
At the moment, it concerns only libzim. Might expand that to libkiwix and the zim/kiwix tools
once we start releasing those.

Github Actions prepare the certificate and environment, and signing+request is done in `notarize_macos_build()` (common.py)

It required the following new secrets:

| secret | value |
|---|---|
| `APPLE_SIGNING_CERTIFICATE` | base64 of the P12 certificate |
| `APPLE_SIGNING_P12_PASSWORD` | password for the P12 certificate (we chose that when exporting to P12. Apple doesnt provide P12) |
| `APPLE_SIGNING_IDENTITY`| Common name of our certificate. Not a private info but seems better suited there than in the CI |
| `APPLE_SIGNING_TEAM`| Apple Developer Team ID (mentionned in the signing identity) |
| `APPLE_SIGNING_ALTOOL_PASSWORD`| app-specific password created to request notarization |
| `APPLE_SIGNING_ALTOOL_USERNAME`| username associated with the app-specific password. Must be an Apple ID with perms on the Certificate. Currently mine. |
2021-02-09 13:30:24 +00:00
renaud gaudin ff66a96980 Fixed #465: trigger docker publish on release
This triggers a `workflow_dispatch` event on the `docker.yml` workflow or the matching
repository for both `zim-tools` and `kiwix-tools` targets that supports it.
2021-01-13 15:58:33 +00:00
Matthieu Gautier 6434150da9 [CI] Fix macos brew install packages (release&Nightly) 2020-10-28 16:40:02 +01:00
Matthieu Gautier 8846acc8cf Fix macos brew install packages.
Directly use brew instead of `get-package` action.
`get-package` seems to be broken with some invalid git command.
2020-10-27 14:20:57 +01:00
ChrisLi 674d6bf6df CI 2020-08-28 14:16:25 -04:00
Matthieu Gautier 1dde278ad6 Correctly set the extra postfix for android kiwix-lib. 2020-08-27 19:20:05 +02:00
Matthieu Gautier a3038253e8 Do not fail if there is no file to publish. 2020-07-15 17:42:32 +02:00
Matthieu Gautier e81a2e7006 Merge tag 'r_10' 2020-07-15 16:20:16 +02:00
Alexander Sashnov da31dd428e remove 'zimwriterfs' project from build and CI configuration
'zimwriterfs' is now a part of zim-tools (openzim/zim-tools/#92)
2020-07-08 16:54:14 +02:00
Matthieu Gautier 2d1e8d0202 Also do the kiwix-lib release (for source publication) 2020-07-02 15:38:24 +02:00
Matthieu Gautier 907bd61f59 Add BINTRAY secrets to env variables. 2020-07-01 16:32:03 +02:00
Matthieu Gautier 7afa3f6a52 Correctly build release of kiwix-lib on android.
The name of the target is `kiwix-lib-app` on android but the key
in the version directory is `kiwix-lib`.
2020-07-01 11:30:26 +02:00
renaud gaudin 8478d65c90 enable compilation of native_mixed on macos
Issue #349 requires a native_mixed for macOS.
native_mixed is working for libzim so we whitelist it.

On the release CI, we fix the macos dylib rpath so it doesn't include the
full build-install step path which is probematic for a distributed file.

We build native_mixed for OSX in both CI and release mode
2020-06-17 09:04:10 +00:00
Matthieu Gautier 2243ca9d91 Deactivate static build on bionic.
See #447
2020-06-10 14:26:11 +02:00
Matthieu Gautier 4bdbc5ac53 Build the base deps on bionics also.
This will allow other project to have their CI running on bionics.
2020-06-09 11:37:56 +02:00
Matthieu Gautier 80c59b246f Change kiwixbot email address to the new one. 2020-06-03 10:48:41 +02:00
Matthieu Gautier 497967236e Publish release source archive on "native_mixed" platform.
`libzim` is build on "native_mixed", not "native_dyn".
2020-05-25 13:08:57 +02:00
Matthieu Gautier 22da0f3b6d Fix postfix generation to not include the `0`. 2020-05-25 12:21:10 +02:00
Matthieu Gautier 925943a5ee Fix checkout of code.
Correctly handle tag ref.
2020-05-25 12:21:10 +02:00
Matthieu Gautier 040171129a Fix release tag format.
The release tag format change to a classic tag triplet format `\d.\d.\d`
to a custom one `r_\d`.
2020-05-25 12:21:10 +02:00
Matthieu Gautier e27fd7b83d Use distro module to detect the distribution name.
`platform.linux_distribution` is deprecated.

This is a recommit of 0fe69e3 now that we moved every thing on github
actions.
2020-05-21 19:55:40 +02:00
Matthieu Gautier e020eb35ac [WIP] Move the release process to github actions. 2020-05-21 12:13:36 +02:00
Matthieu Gautier b68236526d Revert "Use distro module to detect the distribution name."
This reverts commit 0fe69e3991.

This break installation of kiwix-build in travis' docker image.
2020-05-18 13:46:19 +02:00
Matthieu Gautier 0fe69e3991 Use distro module to detect the distribution name.
`platform.linux_distribution` is deprecated.

Fix #415
2020-05-17 17:57:24 +02:00
ChrisLi d0677492d1 remove from CI 2020-05-10 19:55:45 -04:00
Kelson 3c8a9ffbfe
Use standard name for CI (#433) 2020-04-07 18:17:38 +02:00
Matthieu Gautier fb07b58812 Fix recompilation of the CI of meson project.
We were assuming that meson project correspond to our projects and so we
were always building them, even if they were already compiled.
(This way, a simple `kiwix-build` is enough to recompile the WIP code of
our project).

However, on the CI, we do not archive the source code/build directory in
the base deps archive. So when we try to compile, the compile step of
meson projects fails because the source are not here.
We have a small workaround for pugixml but as zstd is also meson, it is
time to do something correct.

By default, all projects now try to skip if a build is already present.
Our projects are marked as `force_build` and so, they do not try to skip.
2020-04-06 19:15:40 +02:00
Matthieu Gautier 08ed650c78 [CI] Clone git repository with a depth of 1 in the CI. 2020-02-25 15:53:23 +01:00
Matthieu Gautier 2c14c1a705 Build base for all iOS architectures. 2020-02-21 15:12:17 +01:00
Matthieu Gautier b790c00187 [action] Correctly fetch the right branch in the CI 2020-02-12 11:25:03 +01:00
Matthieu Gautier a912b890e0 Run base build every day at 1h 2020-02-05 12:11:40 +01:00
Matthieu Gautier b6e5912075 Run schedule every 20 minutes (test) 2020-02-05 11:53:46 +01:00
Matthieu Gautier 3326cda7e3 Schedule a base build everyday. 2020-02-05 11:25:18 +01:00
Kelson 4b3178ea12
Github Kiwix Sponsoring page link 2020-02-01 17:55:53 +01:00
Matthieu Gautier 70b3ed0c76 Update docker images 2020-01-21 15:01:05 +01:00
Matthieu Gautier 1b7a2c812e Add missing platforms.
No iOs for now.
2020-01-21 13:49:12 +01:00
Matthieu Gautier f73e0b2abf Build base deps on macos. 2020-01-21 13:49:12 +01:00
Matthieu Gautier 1d84266751 Build all base dependencies.
Use a custom script for this.
Set `SKIP_BIG_MEMORY_TEST` to avoid launching big test on libzim.
2020-01-21 13:49:12 +01:00
Matthieu Gautier c178c6ea35 Upload an archive of the build directory in case of failure. 2020-01-21 13:49:12 +01:00
Matthieu Gautier d37acc2cbe Build basedeps archives on GithubAction.
Use a specific script to download/build the base deps.

Mainly based on script in travis/compile_all.py
2020-01-21 13:49:12 +01:00
Matthieu Gautier ce45966d40 Add a GithubAction CI to build the docker images.
No really useful for now. But will be in next commit.
2020-01-21 13:49:12 +01:00
Kelson 49cec493c4 Add configs for two Github bots 2019-12-14 15:12:31 +01:00
Kelson 15eeb0bac8
Create FUNDING.yml 2019-06-22 07:56:57 +02:00