🔨 Added buildscript
This commit is contained in:
parent
1ff57b2f9a
commit
33f4edfd5e
31
build.py
Normal file
31
build.py
Normal file
@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env python3
|
||||
import os, sys
|
||||
import platform
|
||||
from glob import glob
|
||||
import yaml
|
||||
import subprocess
|
||||
|
||||
def system(command):
|
||||
retcode = os.system(command)
|
||||
if retcode != 0:
|
||||
raise Exception("Error while executing:\n\t %s" % command)
|
||||
|
||||
|
||||
packages = glob("./*/")
|
||||
|
||||
for p in packages:
|
||||
path = f'{p}/config.yml'
|
||||
if not os.path.isfile(path):
|
||||
continue
|
||||
with open(path) as file:
|
||||
config = yaml.load(file, Loader=yaml.FullLoader)
|
||||
|
||||
for val in config.values():
|
||||
for v, y in val.items():
|
||||
system(f"conan create {p}{y['folder']} {v}@anotherfoxguy/stable -s=build_type=Release -k -b=missing")
|
||||
system(f"conan create {p}{y['folder']} {v}@anotherfoxguy/stable -s=build_type=Debug -k -b=missing")
|
||||
|
||||
data = list(filter(lambda k: 'anotherfoxguy' in k, subprocess.run(['conan','search','*','--raw'], stdout=subprocess.PIPE).stdout.decode("utf-8").split()))
|
||||
|
||||
for d in data:
|
||||
system(f"conan upload {d} -r ror-v2 --all --force")
|
Loading…
x
Reference in New Issue
Block a user