... | ... | @@ -2,6 +2,8 @@ The C branch uses the `make` tool to build a simple C program with several compi |
|
|
|
|
|
We'll make additional use of `ccache` to reuse `*.o` object files from previous builds when the C code has not changed. This particular example is so simple that it does not produce intermediate `.o` files, but ccache does significantly decrease build time for more complex software. You must include sections like this in your build to take advantage of `ccache`.
|
|
|
```yaml
|
|
|
# These commands are run prior to every job's script unless the job specifies
|
|
|
# its own before_script
|
|
|
before_script:
|
|
|
- export PATH=/usr/lib/ccache:/usr/lib64/ccache:$PATH
|
|
|
- export CCACHE_DIR=${CI_PROJECT_DIR}/ccache
|
... | ... | |