Commit Graph

1378 Commits

Author SHA1 Message Date
Matthieu Gautier 4b8862a959 Use only one code to determine what to build.
As we build the "same"[*] things with build_project and build_release_nightly,
let's use the same code.

[*] We are not building the same things has we don't run the same runners
(not the same `PLATFORM_TARGET`) but for a given `PLATFORM_TARGET`, we
are building the same things.
2023-04-12 11:26:12 +02:00
Matthieu Gautier b905e87280 Fix compilation on CI macOS
We don't want to compile zim-tools on macOS_arm64_dynamic.
2023-04-12 11:26:12 +02:00
Matthieu Gautier 2cd4f782ba
Merge pull request #589 from kiwix/zim_tools_publication
Build zim-tools cross-compiling.
2023-04-11 22:58:59 +02:00
Matthieu Gautier 9ee7567e80 Fix typos 2023-04-11 12:05:06 +02:00
Matthieu Gautier ae3b1b6a25 Build zim-tools cross-compiling. 2023-04-11 12:05:06 +02:00
Matthieu Gautier 0b5eb668e7
Merge pull request #584 from kiwix/macos_arm64 2023-04-05 15:48:52 +02:00
Matthieu Gautier 7b7afc36e7 Mixed platform are not static. 2023-03-31 10:51:11 +02:00
Matthieu Gautier 892e4bbffe [CI] Upload `macOS_arm64_mixed` builds. 2023-03-30 17:37:11 +02:00
Matthieu Gautier 260b93a51d Correctly set the include dirs for mixed_target.
Until now, mixed targets was only about native build and so we were not
using a meson cross_config file and env var was enough.

But now we also to correctly set it in the cross_config file.
2023-03-30 16:40:20 +02:00
Matthieu Gautier b218875d49 Rename `macOS_arm64` to `macOS_arm64_static`.
Publication code in `.github/scripts` expected that `foo_mixed` target
is tied to a `foo_static` target.
2023-03-30 14:18:53 +02:00
Matthieu Gautier b4e0d60363 Build and publish libzim and libkiwix on macos_arm64. 2023-03-30 14:18:53 +02:00
Matthieu Gautier de25a1e63b Add `macOS_arm64_mixed` platform. 2023-03-30 14:18:53 +02:00
Matthieu Gautier 52335fbd32
Merge pull request #580 from kiwix/arm_build 2023-03-30 14:16:55 +02:00
Matthieu Gautier c1d0ed4e4f Correctly store the source toolchain for "aarch64" 2023-03-29 15:46:06 +02:00
Matthieu Gautier 695a3ef0c0 Correctly store the `static` compiled source when doing archive for mixed. 2023-03-29 15:46:06 +02:00
Matthieu Gautier 18c5d3bf5f Publish nigthly and release of kiwix-tools on aarch64 2023-03-29 11:40:04 +02:00
Matthieu Gautier 8e61acbca2 Addapt CI to build armhf and aarch64.
- Aarch64 added
- libzim compilation on (armhf|aarch64)_mixed added.
2023-03-28 17:57:39 +02:00
Matthieu Gautier 7ae3afd805 Introduce mixed target for armhf and aarch64. 2023-03-28 17:48:08 +02:00
Matthieu Gautier ab2cbdbe5b Introduce aarch64 target.
In opposition to 32 bits, it is adapted to all PI (as long as they are
in 64 bits).
2023-03-28 17:47:48 +02:00
Matthieu Gautier 4e88c6eb10 Correctly set the armhf toolchain to a 32 bits arch.
cross-gcc-10.3.0-pi_64.tar.gz for 64 bits architecture and armhf
is about 32 bits.

However, we know use a pi 2 and 3 and Stretch only[*] toolchains

[*] To be tested. Maybe the only is for the target compilation but binary
run elsewhere too.
2023-03-28 17:46:31 +02:00
Matthieu Gautier 31771fa35c Introduce MixedMixin
We will need to create "mixed linkage" library for other arch than native.
It is better to move associated code in a separate part.
2023-03-28 17:40:12 +02:00
Matthieu Gautier b6f49efcda Update meta version to not used cached library. 2023-03-28 16:16:22 +02:00
Matthieu Gautier b8cd12a360 Update armhf toolschain. 2023-03-28 16:16:22 +02:00
Matthieu Gautier bc3a73f26d
Merge pull request #582 from kiwix/correct_libzim_version 2023-03-28 15:46:38 +02:00
Matthieu Gautier 556f02cf48 Set back the version of libzim to 8.1.0
The version of libzim (and other project too) is used to know what we
need to package in the published archive (nightly and releasee).

So the version must correspond to what is build.
For nightlies, we build the `main` branch and the main branch of libzim
is still on 8.1.0 so we must have the same version.

Fix openzim/libzim#772
2023-03-28 11:47:56 +02:00
Kelson be486cea4f
Merge pull request #581 from kiwix/mainref
Additional master to main fixes
2023-03-28 11:05:26 +02:00
renaud gaudin 7c02c6b778 Fixed triggering workflows on zim-tools and kiwix-tools
Both the fallback and the passed ref were targeting the master branch of those repositories.
This triggers the workflow on their main branch and sets the default target branch to main as all our repositories use it.
2023-03-28 07:58:41 +00:00
renaud gaudin c5acad73b4 Prevent incorrectly setting DEV_BRANCH
DEV_BRANCH is used to change archive upload behavior.
We current code it was incorrectly considering being on a dev branch while on main one (main)
2023-03-28 07:56:37 +00:00
Matthieu Gautier 61fb624f66 Correctly set the release version of libzim.
As we have change the version of libzim, release build must be 0.
2023-03-22 14:04:36 +01:00
Matthieu Gautier efff7abbfc New release of libzim 8.1.1
As this is just a ABI fix and we recompile everything when we do
a release of our projects, we don't need to recompile our projects.
Building with libzim 8.1.0 was enough, no need to trigger a update in all
the users of prebuild binary.
2023-03-22 13:29:52 +01:00
Matthieu Gautier 82f9d89fd3
Merge pull request #579 from kiwix/fix_wasm_lib 2023-03-20 21:57:18 +01:00
Matthieu Gautier 424d426a0e Correctly package wasm archives.
With commit 6181d7bb, we have changed where archives are written.
We must addapt our packaging script.

Fix #556
2023-03-20 19:32:41 +01:00
Kelson 7b776893fd
Merge pull request #578 from kiwix/fix-release-workflow
Fix release workflow
2023-03-19 15:49:46 +01:00
Emmanuel Engelhart 9f448f83de
Use fix versions for CI/CD 2023-03-19 15:24:33 +01:00
Emmanuel Engelhart eae088e80f
Remove unecessary dependence to container workflow 2023-03-19 15:22:50 +01:00
Kelson d17745ba49
Merge pull request #577 from kiwix/ci-uses-containers-35
Use new container images v36
2023-03-16 13:04:36 +01:00
Emmanuel Engelhart f376e82aac
Use new container images v36 2023-03-16 10:42:07 +01:00
Emmanuel Engelhart 92951ee827
Fix container image tagging 2023-03-16 10:31:08 +01:00
Kelson 8862963dbc
Merge pull request #576 from kiwix/new-attempt-for-container-images
New attempt for container images
2023-03-16 09:35:12 +01:00
Emmanuel Engelhart 245ca71692
Rename container workflow file 2023-03-16 09:34:22 +01:00
Emmanuel Engelhart bd58d50051
Fix docker tag command 2023-03-16 09:33:56 +01:00
Kelson 9d2eae0c34
Merge pull request #575 from kiwix/use-latest-container-images
Use latest container images
2023-03-16 09:16:36 +01:00
Emmanuel Engelhart ea3a07e3c2
Fix container release 2023-03-16 09:05:03 +01:00
Emmanuel Engelhart ad6de2897e
Better name for container workflow 2023-03-16 09:01:50 +01:00
Kelson b8978b1c60
Merge pull request #566 from kiwix/new-ci-container-build
Move CI container building to a dedicated CI workflow
2023-03-15 17:17:49 +01:00
Emmanuel Engelhart 534dee9c94 Use new Docker images for kiwix-build CI 2023-03-15 13:25:13 +01:00
Matthieu Gautier fb9ca9ec89 Add missing packages in bionic container. 2023-03-15 13:25:13 +01:00
Emmanuel Engelhart 672c6fdcb5 Update container user config 2023-03-15 13:25:13 +01:00
Emmanuel Engelhart f16f55fd07 Add container 'latest' tag 2023-03-15 13:25:13 +01:00
Emmanuel Engelhart fed574d0c9 Update CI container image doc 2023-03-15 13:25:13 +01:00