1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-04 16:30:12 +02:00
fdroidserver/buildserver
Hans-Christoph Steiner ec2cace222
buildserver: trim pre-installed NDK list down to the bare minimum
This keeps the Long Term Support release and the latest release installed.
r10e was kept in because it needs a special extraction method, since it is
a .bin file, not a .zip.  r12b is kept in because it is the old default.
Here is a survey of the NDK versions used in the most recent Builds entry
in each app that uses the NDK:

{'r10e': 6,
 'r12b': 93,
 'r13b': 4,
 'r14b': 5,
 'r15c': 7,
 'r16b': 14,
 'r17b': 4,
 'r17c': 7,
 'r18b': 9,
 'r19c': 17,
 'r20': 1,
 'r20b': 22,
 'r21': 3,
 'r21d': 56,
 'r21e': 65,
 'r22': 9,
 'r22b': 15,
 'r9b': 1}

#517


import glob
import os
import yaml

try:
    from yaml import CSafeLoader as SafeLoader
except ImportError:
    from yaml import SafeLoader

ndks = dict()
for f in glob.glob('metadata/*.yml'):
    with open(f) as fp:
        app = yaml.load(fp, Loader=SafeLoader)
        if app.get('Disable'):
            continue
        build = app.get('Builds', [])[-1]
        if build.get('disabled'):
            continue
        ndk = build.get('ndk')
        if ndk and ndk[1] == '9':
            print(f, build)
        elif ndk and int(ndk[2:3]) < 18:
            print(f, build)
        if ndk:
            print(f, ndk)
            if ndk not in ndks:
                ndks[ndk] = 0
            ndks[ndk] += 1

import pprint

pprint.pprint(ndks)
2021-05-25 17:06:28 +02:00
..
.gitignore buildserver: buildserver/Vagrantfile is configed by .yaml file 2016-07-04 23:54:52 +02:00
config.buildserver.yml buildserver: trim pre-installed NDK list down to the bare minimum 2021-05-25 17:06:28 +02:00
provision-android-ndk buildserver: trim pre-installed NDK list down to the bare minimum 2021-05-25 17:06:28 +02:00
provision-android-sdk Added newer ndks, gradles, latest sdk-license, and update java 1.8 version 2019-03-30 17:10:21 -04:00
provision-apt-get-install Fix after https://gitlab.com/fdroid/fdroidserver/-/merge_requests/853 2021-02-12 09:14:27 +00:00
provision-apt-proxy provisioners: work around apt-get update problem 2018-10-24 13:06:27 +02:00
provision-gradle buildserver: only install the latest gradle version 2021-03-11 08:40:34 +01:00
setup-env-vars buildserver: always set DEBIAN_FRONTEND=noninteractive 2018-11-27 18:14:05 +01:00
Vagrantfile buildserver: SharedFoldersEnableSymlinksCreate: false 2021-03-23 11:01:40 +01:00