4
0
mirror of https://github.com/QuasarApp/QuasarAppCI.git synced 2025-05-03 08:49:38 +00:00

added suppor iosworker

This commit is contained in:
Andrei Yankovich 2022-01-21 15:34:36 +03:00
parent 967c9d62f8
commit a48ccbed90
3 changed files with 24 additions and 9 deletions

@ -38,6 +38,12 @@ class BaseModule:
def isWasm(self, step): def isWasm(self, step):
return self.platform == BaseModule.P_Wasm return self.platform == BaseModule.P_Wasm
def isiOS(self, step):
return self.platform == BaseModule.P_iOS
def isMac(self, step):
return self.platform == BaseModule.P_Mac
def generateCmd(self, bashString): def generateCmd(self, bashString):
if isinstance(bashString, list): if isinstance(bashString, list):

@ -4,7 +4,7 @@ from BuildBotLib.make import Make
from BuildBotLib.secretManager import SecretManager from BuildBotLib.secretManager import SecretManager
from buildbot.plugins import steps, util from buildbot.plugins import steps, util
import multiprocessing import multiprocessing
import os
class CMake(Make): class CMake(Make):
@ -15,22 +15,27 @@ class CMake(Make):
def makePrefix(self): def makePrefix(self):
return "C" return "C"
def make(self): def make(self, cxxFlags=[]):
return 'cmake --build cmake_build --target all' return self.makeTarget('all', cxxFlags)
def makeTarget(self, target): def makeTarget(self, target, cxxFlags=[]):
return 'cmake --build cmake_build --target ' + target command = 'cmake --build cmake_build'
command += ' --config Release --target ' + target
def makeCommand(self, props):
command = self.make()
cpus = multiprocessing.cpu_count() cpus = multiprocessing.cpu_count()
if cpus: if cpus:
command += ' --parallel ' + str(cpus) command += ' --parallel ' + str(cpus)
command += ' -- ' + cxxFlags.join(' ')
return command return command
def makeCommand(self, props):
cxx = []
if self.isiOS():
cxx = ['-allowProvisioningUpdates']
return self.make(cxx)
def linuxXmakeCmd(self, props): def linuxXmakeCmd(self, props):
defines = self.getDefinesList(props) defines = self.getDefinesList(props)

@ -36,6 +36,8 @@ repoGen = QIFRepogen()
release = Releaser() release = Releaser()
release = CMake(BaseModule.P_iOS)
bot.addBuilder("LinuxBuilder", qmakeLinux) bot.addBuilder("LinuxBuilder", qmakeLinux)
bot.addBuilder("WindowsBuilder", qmakeWindows) bot.addBuilder("WindowsBuilder", qmakeWindows)
@ -54,5 +56,7 @@ bot.addBuilder("Wasm32Builder", wasm)
bot.addBuilder("DocsGenerator", docs) bot.addBuilder("DocsGenerator", docs)
bot.addBuilder("prodDeployer", release) bot.addBuilder("prodDeployer", release)
bot.addBuilder("iOSCMakeBuilder", release)
c = BuildmasterConfig = bot.getMaster() c = BuildmasterConfig = bot.getMaster()