Skip to content

Commit 63dae69

Browse files
action: set CCACHE_DIR and CCACHE_IGNOREOPTIONS in environment
Prepare for using ccache by setting up CCACHE_DIR and CCACHE_IGNOREOPTIONS in the GitHub environment file. Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
1 parent 6a74437 commit 63dae69

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,19 @@ runs:
121121
122122
if [ "${{ runner.os }}" = "Linux" ]; then
123123
pip_cache_path="~/.cache/pip"
124+
ccache_path="~/.cache/ccache"
124125
sdk_ext="tar.xz"
125126
setup_file="./setup.sh"
126127
setup_opt="-"
127128
elif [ "${{ runner.os }}" = "macOS" ]; then
128129
pip_cache_path="~/Library/Caches/pip"
130+
ccache_path="~/Library/Caches/ccache"
129131
sdk_ext="tar.xz"
130132
setup_file="./setup.sh"
131133
setup_opt="-"
132134
elif [ "${{ runner.os }}" = "Windows" ]; then
133135
pip_cache_path="~\AppData\Local\pip\Cache"
136+
ccache_path="~\AppData\Local\ccache\Cache"
134137
sdk_ext="7z"
135138
setup_file="./setup.cmd"
136139
setup_opt="//"
@@ -156,6 +159,8 @@ runs:
156159
echo "SDK_VERSION=${sdk_version}" >> $GITHUB_ENV
157160
echo "SDK_FILE=zephyr-sdk-${sdk_version}_${sdk_variant}_minimal.${sdk_ext}" >> $GITHUB_ENV
158161
echo "PIP_CACHE_PATH=${pip_cache_path}" >> $GITHUB_ENV
162+
echo "CCACHE_DIR=${ccache_path}" >> $GITHUB_ENV
163+
echo "CCACHE_IGNOREOPTIONS='-specs=* --specs=*'" >> $GITHUB_ENV
159164
echo "SETUP_FILE=${setup_file}" >> $GITHUB_ENV
160165
echo "SETUP_OPT=${setup_opt}" >> $GITHUB_ENV
161166

0 commit comments

Comments
 (0)