Comments (6)
Thank you, for the patch.
I have setup it yesterday and it works for me, invoked like this:
- name: ccache setup 🕺
uses: Chocobo1/setup-ccache-action@v1
with:
windows_compile_environment: msys2
prepend_symlinks_to_path: false
install_ccache: false
update_packager_index: false
ccache_options: |
compiler_check = %compiler% -v
compression = false
max_size = 3G
We will see, I don't know why it is failing when I have a problem like this, then I use this after failing action:
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
- run: exit 1
Then ssh into the runner and try to invoke commands directly in the runner, but it looks like that fail exits the whole job so what I'm writing above will be useless for you.
We will see and I don't have too much time to investigate it, to be honest.
from setup-ccache-action.
It seems msys2 has done some update, now I can properly test my code.
And I found out that need to revert some of my changes and that includes declining/reverting what you suggested here. The reason is that MSYSTEM_PREFIX
is only available within msys2 shell and not in the shell that setup-ccache-action is using.
Here you can see MSYSTEM
but no MSYSTEM_PREFIX
: https://github.com/Chocobo1/setup-ccache-action/runs/4392064323?check_suite_focus=true#step:4:89
Also just to be sure, msys2 is on windows so the filesystem is case-insensitive therefore using MSYSTEM
(instead of MSYSTEM_PREFIX
) shouldn't really affect you, right?
from setup-ccache-action.
Hi @Chocobo1, thx for the great GH action.
You are welcome.
should be?
MINGW_PREFIX
orMSYSTEM_PREFIX
:
return ${Process.env.MINGW_PREFIX}/lib/ccache/bin;
That probably would be good, applied in 243d077.
I'm not sure what is the difference between MSYSTEM_PREFIX and MINGW_PREFIX
Looks like MINGW_PREFIX
is just an alias for MSYSTEM_PREFIX
.
Also note that the msys testing CI is broken currently and I have no idea what caused it, it was working fine a few days ago. Last working instance: https://github.com/Chocobo1/setup-ccache-action/actions/runs/1458477952
I tried to replicate locally but it fails to show the symptom, i.e. it was working fine locally.
So msys support currently is in a perverted state and I cannot fully guarantee that it is working...
from setup-ccache-action.
I have setup it yesterday and it works for me, invoked like this:
Seems you skipped all possible failing points (by accident?), good for you.
We will see, I don't know why it is failing when I have a problem like this, then I use this after failing action:
Thanks! I'll take a look when I got the time.
from setup-ccache-action.
Seems you skipped all possible failing points (by accident?), good for you.
That is true, I'm installing ccache myself, I'm not using prepend_symlinks_to_path
because cmake has a problem with ccache wrappers when I use ninja.
So I'm practically using only caching capabilities of ccache's cache dir 😂 from this action and I also like output statistics.
from setup-ccache-action.
Ok, thank you for info, it does not matter at the end of the day.
from setup-ccache-action.
Related Issues (11)
- Failure on ubuntu-18.04 HOT 1
- Do not add any timestamp to the cached file HOT 1
- Cygwin support HOT 4
- brew exit code 1 HOT 1
- Brew install failing on macOS runners HOT 3
- Should configure ccache before restore cache HOT 9
- Consider changing Windows warning to an info printout HOT 3
- Cache upload failed - ESPIPE: invalid seek HOT 5
- Windows msvc support HOT 2
- Please update to @actions/core 1.10 to avoid warnings about deprecated `set-output` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-ccache-action.