OMW_Nightly update 38 and enable LTO

This commit is contained in:
Licaon_Kter 2020-10-14 13:54:51 +03:00
parent 20c9176fac
commit 5888026235

View file

@ -404,6 +404,41 @@ Builds:
- buildscripts/downloads/*
ndk: r20b
- versionName: 0.47.0-38-nightly
versionCode: 38
commit: 0.47.0-38-nightly
timeout: 30000
sudo:
- apt-get update || apt-get update
- apt-get install -y doxygen g++ pkgconf wget
- apt-get install -y -t stretch-backports-sloppy libarchive13
- apt-get install -y -t stretch-backports cmake
gradle:
- nightly
output: app/build/outputs/apk/nightly/release/omw_release_*.apk
prebuild:
- sed -i -e '/Unzip/,+5d' buildscripts/include/setup-ndk.sh
- sed -i -e 's/\ -Wl,-plugin-opt=-emulated-tls//' -e '/download-ndk/d' -e '/debugging\
life/,+19d' buildscripts/build.sh
- mkdir -p buildscripts/toolchain/ndk
- ln -s $$NDK$$/* buildscripts/toolchain/ndk/
- rm -fr buildscripts/toolchain/ndk/build
- cp -r $$NDK$$/build buildscripts/toolchain/ndk/
- sed -i 's/Oz/O2/g' buildscripts/toolchain/ndk/build/cmake/android.toolchain.cmake
- ./buildscripts/build.sh --arch arm --lto
- ./buildscripts/build.sh --arch arm64 --lto --no-resources
- ./buildscripts/build.sh --arch x86 --lto --no-resources
- ./buildscripts/build.sh --arch x86_64 --lto --no-resources
- rm -fr ./buildscripts/build/*
- rm -fr ./buildscripts/prefix/*
- rm -fr ./buildscripts/symbols/*
- rm -fr ./buildscripts/toolchain/*
scanignore:
- app/src/main/assets
- app/src/main/jniLibs
- buildscripts/downloads/*
ndk: r20b
MaintainerNotes: |-
- we use prebuild else fdroid scanner will detect the built libs as binaries on the second pass before running build, and we can't scanignore them (at start) since they don't exist yet, see https://gitlab.com/fdroid/fdroidserver/issues/635
- we remove the buildtools and intermediary artefacts (several gigabytes) else they'll get pulled in the source tarball