Commit Graph

984 Commits

Author SHA1 Message Date
Matthieu Gautier 56cbf4985c fix typos in compile_all.py (build of android app) 2020-02-27 15:41:10 +01:00
Matthieu Gautier 8cecb1c759 Rebuild kiwix-lib (for android) 2020-02-26 18:32:00 +01:00
Matthieu Gautier bf405d105c Revert 82617f6b94 2020-02-26 18:30:24 +01:00
Matthieu Gautier ad24eaab4b
Merge pull request #414 from kiwix/fix_cross_file
Always write the cross_file using the same name.
2020-02-25 17:17:19 +01:00
Matthieu Gautier 6093c011ab Always write the cross_file using the same name.
Even if we use different template for different platform, we must
always use the same cross_file name.
2020-02-25 16:36:56 +01:00
Matthieu Gautier d30ec7219e
Merge pull request #413 from kiwix/no_git_update
No git update
2020-02-25 16:34:53 +01: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 40b5013279 Add some colors in the terminal. 2020-02-25 15:48:20 +01:00
Matthieu Gautier f504cf54e1 Do not reset the source directory if there is modification.
We simply do a `git merge --ff-only` instead of a `git reset`. This way:

- No change on the local repository
    => update to `remote/master`
- If you switch branch and local branch is behind `remote/master`
    => fast forward to `remote/master`
- If you switch branch and branches diverge
    => No update of the directory
- On branch master (or a branch behind `origin/master`) with compatible
  change in the working tree.
    =>  update of the directory
- On branch master (or a branch behind `origin/master`) but incompatible
  change in the working tree.
    =>  No update.

This way, sources are keep up-to-date as far as possible.
2020-02-25 15:46:09 +01:00
Matthieu Gautier 3f50b1b069
Merge pull request #412 from kiwix/fix_android_ci
Fix android ci
2020-02-24 20:51:09 +01:00
Matthieu Gautier 94c98261c7 Fix compilation on different platform in the same time.
If we modify the dependency's configure_env, we may change
the dictionary with value of the first platform. Then, when
we use it for the second platform, the previous values are used.

Do not modify the dep_conf_env dictionary and then we are good.
2020-02-24 18:24:07 +01:00
Matthieu Gautier 32e3b5b5c4 Fix compilation of kiwix-lib-app.
- We should not try to set the cross compilation flags when we use
  gradle.
- Fix anyway the setting of tho cross compilation flags for android sdk
  platform (the default implementation use the `static` attributes that
  doesn't exist for android)
2020-02-24 15:30:31 +01:00
Matthieu Gautier 8bca6ea8dc
Merge pull request #411 from kiwix/action_ios2
Action ios2
2020-02-21 18:48:20 +01:00
Matthieu Gautier 661eb95df0 Use a specific cross_file on iOS cross compilation.
We need to set the property `needs_exe_wrapper` to true for
x86_64 cross compilation.

Else, meson will try to detect if we could run the cross
compiled executable, and because it is the same arch, it will
assume we can. So it will try to sanity check and execute the
cross compiled binary. Then fails.
2020-02-21 16:29:23 +01:00
Matthieu Gautier 7b6c79482a Make the dependency responsible to set the compilation env.
Instead of having the run_command function setting the
env from the buildEnv, this is the dependency that create the
env and then pass it to the run_command function.

This way, each dependency will be able to set a specific env.
2020-02-21 16:29:23 +01:00
Matthieu Gautier e27ede80cc Use correct arch_full name. 2020-02-21 15:12:17 +01:00
Matthieu Gautier 36366b2dd3 Better define of value in ios platform.
No real change, just better code to define it.
2020-02-21 15:12:17 +01:00
Matthieu Gautier 7d742f807f Fix setting of environment using env from dependency.
If `self.configure_env` is a (computed) property, the previous code
never format the value of the env.
2020-02-21 15:12:17 +01:00
Matthieu Gautier 2c14c1a705 Build base for all iOS architectures. 2020-02-21 15:12:17 +01:00
Matthieu Gautier c4295b1644 Do not set a specific compiler for ios 2020-02-21 15:12:17 +01:00
Matthieu Gautier 79bb23504b Update version of kiwix-lib to 9.0.1
Do not rebuild dependencies as the change is only about the android
wrapper.
2020-02-21 15:00:26 +01:00
Matthieu Gautier 14d6aae4b1 Update version of kiwix-tools. 2020-02-13 11:46:20 +01:00
Matthieu Gautier 5d9730423a Update version of kiwix-lib.
Do not make a new build of kiwix-tools right now as we will do a
new release of it once kiwix-lib release is published.
2020-02-12 15:27:27 +01:00
Matthieu Gautier a88706e78e
Merge pull request #407 from kiwix/rgaudin/libmicrohttp
switch to older version of libmicrohttpd
2020-02-12 14:44:14 +01:00
Matthieu Gautier b790c00187 [action] Correctly fetch the right branch in the CI 2020-02-12 11:25:03 +01:00
renaud gaudin 3569c277a9 switch to older version of libmicrohttpd
libmicrohttpd 0.9.69 is not working properly on macOS (catalina)
2020-02-12 11:09:46 +01:00
renaud gaudin 5af0a8bfe7 fixed crash in xapian-core configure
use a copy of configure_env to prevent edits on what's being iterated
2020-02-11 13:10:21 +00:00
Kelson 29956ee6be Release zimwriterfs 1.3.8 2020-02-10 14:36:11 +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 fde12d47f6
Merge pull request #405 from kiwix/schedule
Schedule a base build everyday.
2020-02-05 11:41:41 +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 e90766fe60
Change args given to kiwix-lib meson for android. (#401)
Change args given to kiwix-lib meson for android.
2020-01-31 11:10:32 +01:00
Matthieu Gautier 0a37c8a573 Change args given to kiwix-lib meson for android. 2020-01-28 15:49:52 +01:00
Matthieu Gautier f8dae7e972
Merge pull request #404 from kiwix/flathub_update
Do not update flathub repository if no release.
2020-01-28 15:47:30 +01:00
Matthieu Gautier b06d93b06d Do not update flathub repository if no release.
Fix #385
2020-01-28 12:05:13 +01:00
Matthieu Gautier b94cf5e0e1
Use github action to build base deps of kiwix-build. (#400)
Use github action to build base deps of kiwix-build.
2020-01-21 16:37:49 +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
Matthieu Gautier 2f151df63c Update version of meson.
We should not force a specific version as it is a environment problem,
but for now, set it.
2020-01-21 13:49:12 +01:00
Matthieu Gautier 2774967e6d Set the pkg-config for cross-compiling.
This is needed for win32 on fedora.
It is better to use a specific pkg-config than setting a PKG_CONFIG_LIBDIR.
This avoid other CI (libzim/...) to set a env var specific to win32 build.
2020-01-20 22:55:50 +01:00
Matthieu Gautier 82617f6b94 Do not set `march` for android build.
We already build to the right architecture by using the arch_full triplet
gcc/g++/...
We don't need to set march when building android.
2020-01-20 22:55:21 +01:00
Justin Biggs 2e05257737 Update Readme.MD, correct spelling error (#397)
"Prerequisite"
2019-12-26 16:28:11 +01:00
Kelson b92a111fcc
Upgrade libmicrohttpd to 0.9.69 (#394) 2019-12-16 16:57:59 +01:00