Skip to content

Using action under MSYS2 #46

Answered by uulm-janbaudisch
daljit46 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, this question somewhat old know, but I thought I might share my solution anyway. sccache as installed with this action seems to work in an MSYS2 environment. It is not available in $PATH, so it must be called via $SCCACHE_PATH.
For example, to use sccache with CMake on MSYS2, you can use the following steps in your workflow:

echo CMAKE_C_COMPILER_LAUNCHER="$SCCACHE_PATH" >> $GITHUB_ENV
echo CMAKE_CXX_COMPILER_LAUNCHER="$SCCACHE_PATH" >> $GITHUB_ENV

In steps following this one, CMake would be able to use sccache.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by daljit46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #42 on May 15, 2023 09:48.