Commit graph

1358 commits

Author SHA1 Message Date
Matthieu Gautier
369a5015a0 Fix cross-compilation to raspberry-pi.
Use a toolschain made for debian Bullseye (or equivalent).
Using the Stretch toolschain, kiwix-serve launch but crash with a SIGSEGV
at first request.
(I suspect a "conflict" between thread and exception handling as
a test program with exception only works).

Moving the a toolschain targeting Bullseye fixes the issues
(both on qemu and real raspberry-pi v3 B).

Note that the toolschain is given to compile for Pi 2 and 3 only.
I've also tested with toolschain for Pi 3A+, 3B+, 4 and generated binary
also works.
Not tested of Pi Zero.


Fix #613
2023-05-15 18:18:14 +02:00
Matthieu Gautier
64c5f20d78
Merge pull request #604 from kiwix/fix_flatpak_publish 2023-05-10 14:38:44 +02:00
Matthieu Gautier
3e712db880 Fix publish of kiwix-desktop flatpak.
We cannot directly push on master. We have to create a pull request.
The CI is adapted to push a new branch. The PR has to be created manually.
2023-05-10 14:12:06 +02:00
Matthieu Gautier
868d82b384
Merge pull request #606 from kiwix/fix-oses-ci 2023-05-09 14:44:17 +02:00
Emmanuel Engelhart
a11b813f82
Use always fix version of macOS & Ubuntu 2023-05-04 15:06:52 +02:00
Matthieu Gautier
647304c253 New releaes of libzim, zim-tools and kiwix-tools. 2023-04-28 11:39:29 +02:00
Matthieu Gautier
fd53141b9c Use docker image version 38. 2023-04-28 10:00:11 +02:00
Matthieu Gautier
34363684c3
Merge pull request #602 from kiwix/macos_arm64_tools 2023-04-28 09:35:02 +02:00
Matthieu Gautier
8f8ea01aec Do not build binaries on macOS not _dyn.
Tools fails to compile for different reasons:
- Missing dependencies
- Use of invalid options (`-dead_strip_dylibs`/`-bitcode_bundle`)
2023-04-28 08:59:14 +02:00
Matthieu Gautier
02e2598056 Build zim-tools and kiwix-tools and macosOs_arm64. 2023-04-27 19:10:55 +02:00
Matthieu Gautier
ab14ce957b Build kiwix-tools on macos (native) 2023-04-27 19:02:23 +02:00
Kelson
826ce1718d
Merge pull request #597 from kiwix/libzim_bionic
Build libzim on bionic
2023-04-27 14:10:24 +02:00
Matthieu Gautier
fd85b80b2c Move back to gcc 6.3.0 when compiling to aarch64. 2023-04-26 16:54:35 +02:00
Matthieu Gautier
fc3b446c76 Also build libzim mixed for aarch64 on bionic. 2023-04-26 16:54:35 +02:00
Matthieu Gautier
fffbd122c9 Make bionic CI create archive containing bionic in the name. 2023-04-26 16:54:35 +02:00
Matthieu Gautier
4aa613c8e6 Update CI build script
Update CI scripts to build only libzim on native_mixed if os name is
bionic.
2023-04-26 16:54:35 +02:00
Matthieu Gautier
7a0f490e00 Update CI workflows
Update CI to build on native_mixed bionic and build the bionic docker
image.
2023-04-26 15:21:17 +02:00
Matthieu Gautier
c55a96678e Build a minimalist bionic builder.
Reuse the bionic builder (we should have remove in pr #588) and
remove all deps not needed to build libzim.
2023-04-26 15:21:17 +02:00
Matthieu Gautier
bb0e8d6e70
Merge pull request #600 from kiwix/update_xapian 2023-04-26 15:20:56 +02:00
Matthieu Gautier
5ef7e2a017 New version of xapian 1.4.22
Fix #599
2023-04-25 16:54:40 +02:00
Matthieu Gautier
5bb67d7ebb
Merge pull request #596 from kiwix/fix_deps_aarch64 2023-04-19 15:06:01 +02:00
Matthieu Gautier
2b6e305911 Install things in lib/aarch64-linux-gnu 2023-04-19 11:36:08 +02:00
Matthieu Gautier
51925bc4da Add the aarch64 toolchains to deps archive.
We need the aarch64 compiler to let's project build themselves.
2023-04-19 10:54:16 +02:00
Matthieu Gautier
65cf449c66 Update docker image to 37. 2023-04-18 10:34:08 +02:00
Kelson
bfc9294318
Merge pull request #588 from kiwix/ubuntu-20.04
Move all our CI to focal instead of bionic
2023-04-12 16:54:41 +02:00
Matthieu Gautier
e6d04fb760 Update README. 2023-04-12 16:53:32 +02:00
Matthieu Gautier
d00c06da32 Use last version of linuxdeployqt.
LinuxDeployQt check for the libc version to not being to recent.
As we have change the version of libc by moving to focal, we have to
update the version of LinuxDeployQt.
2023-04-12 16:53:32 +02:00
Matthieu Gautier
0919f4d3dd [WIP] Use the docker image of our branch. 2023-04-12 16:53:32 +02:00
Matthieu Gautier
c9e9c5c070 Move all our CI to focal instead of bionic
Bionic is EOL.
2023-04-12 16:53:32 +02:00
Kelson
3db22ba0bc
Merge pull request #591 from kiwix/fix_arm64_compilation
Fix compilation on CI macOS
2023-04-12 16:53:02 +02:00
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