Hi guys,
I have configured a yml script for the pipeline of my repository to compile my C code.
To do this the script is configured to download a toolchain before the build is started.
It seems to work properly.
Now I am trying to use caches to avoid to download the toolchain every time the pipeline is started, but I don't see anything cached after every build. Is it possible? What did I do wrong?
This is my first question here and i have tried to find other similar questions but i did not find any at the moment.
Here you find a simplified version of my yml file:
image: python:2.7
pipelines:
default:
- step:
caches:
- toolchain
script:
- if [ ! -e $GCC_DIR/bin/arm-none-eabi-g++ ]; then wget $GCC_URL -O $GCC_ARCHIVE; tar xfj $GCC_ARCHIVE -C $HOME; fi
- cd firmware
- export PATH=$GCC_DIR/bin:$PATH
- make
definitions:
caches:
toolchain: $GCC_DIR
Edit: This is the build teardown I got from last pipeline run:
Cache "toolchain": Skipping upload for empty cache
Searching for test report files in directories named [test-results, failsafe-reports, test-reports, surefire-reports] down to a depth of 4
Finished scanning for test reports. Found 0 test report files.
Merged test suites, total number tests is 0, with 0 failures and 0 errors.
Regards.