geogram icon indicating copy to clipboard operation
geogram copied to clipboard

Windows build: sccache deactivated

Open BrunoLevy opened this issue 2 years ago • 7 comments

In the "Prepare sccache" step it says:

Initializing...
Invoke-Expression: D:\a\_temp\ff2ee3ee-f101-4b64-b0b3-df1f0e660f49.ps1:2
Line |
   2 |  Invoke-Expression (New-Object System.Net.WebClient).DownloadString('h …
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The term 'Select-CurrentVersion' is not recognized as a name of a cmdlet, function, script file, or
     | executable program. Check the spelling of the name, or if a path was included, verify that the path is
     | correct and try again.

Error: Process completed with exit code 1.

Do you have any hint @jdumas ? (note: I've added yesterday github actions to build Doxygen doc and publish it on gh-pages, but I think it is unrelated)

BrunoLevy avatar Mar 08 '22 06:03 BrunoLevy

Seems to be an issue with the scoop installer. It should be fixed soon! In the meantime you could comment out the step that installs sccache and comment out the line CMAKE_CXX_COMPILER_LAUNCHER=sccache on the Windows job.

jdumas avatar Mar 08 '22 08:03 jdumas

Thank you Jeremie !

BrunoLevy avatar Mar 08 '22 10:03 BrunoLevy

Leaving the issue open as a reminder that sccache should be reactivated as soon as scoop installer issues is fixed (https://github.com/ScoopInstaller/Scoop/issues/4783)

BrunoLevy avatar Mar 08 '22 10:03 BrunoLevy

Should be fixed now!

jdumas avatar Mar 08 '22 16:03 jdumas

Re-activated sccache, works again.

BrunoLevy avatar Mar 09 '22 06:03 BrunoLevy

with latest update of scoop, it fails again (not running as admin by default anymore, and needed for sccache it seems). For now, I deactivated sccache again in Build action so that Windows compile works.

BrunoLevy avatar Mar 10 '22 11:03 BrunoLevy

Argh! Maybe you can use the same changes as this guy? (see the doc about advanced installation)

jdumas avatar Mar 10 '22 16:03 jdumas

For now, deactivating cache build (does not gain a lot and makes build system much more complicated...)

BrunoLevy avatar Nov 11 '22 09:11 BrunoLevy