mirror of
https://github.com/QuasarApp/QuasarAppCI.git
synced 2025-04-29 07:04:37 +00:00
Merge pull request #11 from QuasarApp/SeparateAndroidBuilds
Separate android builds
This commit is contained in:
commit
54da0a4843
@ -25,10 +25,10 @@ class BuildBotShedulers(BuildBotModule):
|
||||
def initScheduler(self):
|
||||
|
||||
buildersCode = ['LinuxBuilder',
|
||||
'AndroidBuilder',
|
||||
'AndroidBuilder_v7',
|
||||
'AndroidBuilder_v8',
|
||||
'WindowsBuilder',
|
||||
'LinuxCMakeBuilder',
|
||||
'AndroidCMakeBuilder',
|
||||
'WindowsCMakeBuilder',
|
||||
'Wasm32Builder',
|
||||
]
|
||||
|
@ -21,10 +21,10 @@ class BuildBotWorkers(BuildBotModule):
|
||||
password = scr.getValue('WorkerPass')
|
||||
|
||||
self.masterConf['workers'] = [
|
||||
worker.Worker("AndroidBuilder", password),
|
||||
worker.Worker("LinuxBuilder", password),
|
||||
worker.Worker("WindowsBuilder", password),
|
||||
worker.Worker("AndroidCMakeBuilder", password),
|
||||
worker.Worker("AndroidBuilder_v7", password),
|
||||
worker.Worker("AndroidBuilder_v8", password),
|
||||
worker.Worker("LinuxCMakeBuilder", password),
|
||||
worker.Worker("WindowsCMakeBuilder", password),
|
||||
worker.Worker("RepoGen", password),
|
||||
|
@ -54,7 +54,7 @@ class CMake(Make):
|
||||
|
||||
return ' '.join(options)
|
||||
|
||||
def androidXmakeCmd(self, props):
|
||||
def androidXmakeMultiAbiCmd(self, props):
|
||||
file = self.home + "/buildBotSecret/secret.json"
|
||||
secret = SecretManager(file, props)
|
||||
toochainFile = 'build/cmake/android.toolchain.cmake'
|
||||
@ -76,6 +76,29 @@ class CMake(Make):
|
||||
|
||||
return ' '.join(options)
|
||||
|
||||
def androidXmakeSinglAbiCmd(self, props):
|
||||
file = self.home + "/buildBotSecret/secret.json"
|
||||
secret = SecretManager(file, props)
|
||||
toochainFile = 'build/cmake/android.toolchain.cmake'
|
||||
|
||||
options = [
|
||||
'cmake -GNinja',
|
||||
'-DCMAKE_PREFIX_PATH=$QTDIR',
|
||||
'-DQT_QMAKE_EXECUTABLE=$QTDIR/bin/qmake',
|
||||
'-DANDROID_ABI=$ANDROID_ABI',
|
||||
'-DCMAKE_FIND_ROOT_PATH=$QTDIR',
|
||||
'-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_ROOT/' + toochainFile,
|
||||
'-DSIGN_PATH="' + secret.getValue('SIGPATH') + '"',
|
||||
'-DSIGN_ALIES="quasarapp"',
|
||||
'-DSIGN_STORE_PASSWORD="' + secret.getValue('SIGPASS') + '"',
|
||||
'-B cmake_build'
|
||||
]
|
||||
|
||||
return ' '.join(options)
|
||||
|
||||
def androidXmakeCmd(self, props):
|
||||
return self.androidXmakeSinglAbiCmd(props)
|
||||
|
||||
def wasmXmakeCmd(self, props):
|
||||
options = [
|
||||
'cmake -DCMAKE_PREFIX_PATH=$QTDIR',
|
||||
|
@ -1,7 +1,7 @@
|
||||
# This Python file uses the following encoding: utf-8
|
||||
|
||||
from BuildBotLib.cmake import CMake
|
||||
from buildbot.plugins import util, steps
|
||||
from buildbot.plugins import util
|
||||
|
||||
|
||||
class Docs(CMake):
|
||||
@ -34,9 +34,9 @@ class Docs(CMake):
|
||||
return 'mv docs ' + str(props.getProperty('copyFolder'))
|
||||
|
||||
res += [self.generateStep(move,
|
||||
platform,
|
||||
'moveDocs',
|
||||
self.isDeploy)]
|
||||
platform,
|
||||
'moveDocs',
|
||||
self.isDeploy)]
|
||||
|
||||
return res
|
||||
|
||||
|
@ -35,11 +35,12 @@ repoGen = QIFRepogen()
|
||||
|
||||
bot.addBuilder("LinuxBuilder", qmakeLinux)
|
||||
bot.addBuilder("WindowsBuilder", qmakeWindows)
|
||||
bot.addBuilder("AndroidBuilder", qmakeAndroid)
|
||||
|
||||
bot.addBuilder("LinuxCMakeBuilder", cmakeLinux)
|
||||
bot.addBuilder("WindowsCMakeBuilder", cmakeWindows)
|
||||
bot.addBuilder("AndroidCMakeBuilder", cmakeAndroid)
|
||||
|
||||
bot.addBuilder("AndroidBuilder_v7", cmakeAndroid)
|
||||
bot.addBuilder("AndroidBuilder_v8", cmakeAndroid)
|
||||
|
||||
bot.addBuilder("RepoGen", repoGen)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user