appveyor: add build cache for external tools
This commit is contained in:
@@ -8,6 +8,12 @@
|
|||||||
# Ralph Lange <ralph.lange@gmx.de>
|
# Ralph Lange <ralph.lange@gmx.de>
|
||||||
# Copyright (c) 2020 ITER Organization
|
# Copyright (c) 2020 ITER Organization
|
||||||
|
|
||||||
|
#---------------------------------#
|
||||||
|
# build cache #
|
||||||
|
#---------------------------------#
|
||||||
|
|
||||||
|
cache:
|
||||||
|
- C:\Users\appveyor\.tools -> appveyor\do.py
|
||||||
|
|
||||||
#---------------------------------#
|
#---------------------------------#
|
||||||
# repository cloning #
|
# repository cloning #
|
||||||
|
|||||||
@@ -407,25 +407,29 @@ def prepare(*args):
|
|||||||
if not os.path.isdir(toolsdir):
|
if not os.path.isdir(toolsdir):
|
||||||
os.makedirs(toolsdir)
|
os.makedirs(toolsdir)
|
||||||
|
|
||||||
print('Installing Make 4.2.1 from ANL web site')
|
makever = '4.2.1'
|
||||||
sys.stdout.flush()
|
if not os.path.exists(os.path.join(toolsdir, 'make.exe')):
|
||||||
sp.check_call(['curl', '-fsS', '--retry', '3', '-o', 'make-4.2.1.zip',
|
print('Installing Make 4.2.1 from ANL web site')
|
||||||
'https://epics.anl.gov/download/tools/make-4.2.1-win64.zip'],
|
sys.stdout.flush()
|
||||||
cwd=toolsdir)
|
sp.check_call(['curl', '-fsS', '--retry', '3', '-o', 'make-{0}.zip'.format(makever),
|
||||||
sp.check_call([zip7, 'e', 'make-4.2.1.zip'], cwd=toolsdir)
|
'https://epics.anl.gov/download/tools/make-{0}-win64.zip'.format(makever)],
|
||||||
|
cwd=toolsdir)
|
||||||
|
sp.check_call([zip7, 'e', 'make-{0}.zip'.format(makever)], cwd=toolsdir)
|
||||||
|
os.remove(os.path.join(toolsdir, 'make-{0}.zip'.format(makever)))
|
||||||
|
|
||||||
perlver = '5.30.0.1'
|
perlver = '5.30.0.1'
|
||||||
if os.environ['CC'] == 'vs2019':
|
if os.environ['CC'] == 'vs2019':
|
||||||
print('Installing Strawberry Perl {0}'.format(perlver))
|
if not os.path.isdir(os.path.join(toolsdir, 'strawberry')):
|
||||||
sys.stdout.flush()
|
print('Installing Strawberry Perl {0}'.format(perlver))
|
||||||
sp.check_call(['curl', '-fsS', '--retry', '3', '-o', 'perl-{0}.zip'.format(perlver),
|
sys.stdout.flush()
|
||||||
'http://strawberryperl.com/download/{0}/strawberry-perl-{0}-64bit.zip'.format(perlver)],
|
sp.check_call(['curl', '-fsS', '--retry', '3', '-o', 'perl-{0}.zip'.format(perlver),
|
||||||
cwd=toolsdir)
|
'http://strawberryperl.com/download/{0}/strawberry-perl-{0}-64bit.zip'.format(perlver)],
|
||||||
sp.check_call([zip7, 'x', 'perl-{0}.zip'.format(perlver), '-ostrawberry'], cwd=toolsdir)
|
cwd=toolsdir)
|
||||||
|
sp.check_call([zip7, 'x', 'perl-{0}.zip'.format(perlver), '-ostrawberry'], cwd=toolsdir)
|
||||||
with open(os.devnull, 'w') as devnull:
|
os.remove(os.path.join(toolsdir, 'perl-{0}.zip'.format(perlver)))
|
||||||
sp.check_call('relocation.pl.bat', shell=True, stdout=devnull,
|
with open(os.devnull, 'w') as devnull:
|
||||||
cwd=os.path.join(toolsdir, 'strawberry'))
|
sp.check_call('relocation.pl.bat', shell=True, stdout=devnull,
|
||||||
|
cwd=os.path.join(toolsdir, 'strawberry'))
|
||||||
|
|
||||||
setup_for_build()
|
setup_for_build()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user