提交 b46380ee 编写于 作者: J Jesse Zhang 提交者: Jesse Zhang

Enable Concourse caching of ccache

Shiny new feature in Concourse 3.3.0
(https://concourse.ci/running-tasks.html#caches)

[ci skip]
上级 25c2b4dd
......@@ -48,7 +48,16 @@ def make():
"-j" + str(num_cpus()),
"-l" + str(2 * num_cpus()),
],
cwd="build")
cwd="build",
env=ccache_env()
)
def ccache_env():
env = os.environ.copy()
env['CCACHE_DIR'] = os.getcwd() + '/.ccache'
return env
def run_tests():
return subprocess.call(["ctest",
......
......@@ -9,6 +9,10 @@ inputs:
- name: orca_src
outputs:
- name: build_and_test_debug
caches:
- path: .ccache
run:
path: orca_src/concourse/build_and_test.py
args:
......
......@@ -7,6 +7,10 @@ image_resource:
inputs:
- name: bin_xerces_centos5
- name: orca_src
caches:
- path: .ccache
outputs:
- name: build_and_test_release
run:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册