-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Broken by #2857. Also enable ccache. - `CI_BUILD_DIR` does not point to Sming build: must use SMING_HOME. - Don't set CI_BUILD_DIR or SMING_HOME in `setenv.ps1` - it's wrong and already set in `.yml`
- Loading branch information
Showing
4 changed files
with
30 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
REM | ||
REM Windows CI install script | ||
REM | ||
REM May also be used for library CI builds. The following variables must be set: | ||
REM | ||
REM CI_BUILD_DIR | ||
REM SMING_HOME | ||
REM | ||
|
||
if "%SMING_TOOLS_PREINSTALLED%" NEQ "" goto :EOF | ||
|
||
if "%BUILD_DOCS%" == "true" ( | ||
set INSTALL_OPTS=doc | ||
) | ||
|
||
call %CI_BUILD_DIR%\Tools\install.cmd %SMING_ARCH% %INSTALL_OPTS% | ||
call %SMING_HOME%\..\Tools\install.cmd %SMING_ARCH% %INSTALL_OPTS% | ||
|
||
REM Configure ccache | ||
ccache --set-config cache_dir="%CI_BUILD_DIR%\.ccache" | ||
ccache --set-config max_size=500M | ||
ccache -z | ||
if "%ENABLE_CCACHE%"=="1" ( | ||
ccache --set-config cache_dir="%CI_BUILD_DIR%\.ccache" | ||
ccache --set-config max_size=500M | ||
ccache -z | ||
) | ||
|
||
REM Clean up tools installation | ||
python "%CI_BUILD_DIR%\Tools\ci\clean-tools.py" clean --delete | ||
python "%SMING_HOME%\..\Tools\ci\clean-tools.py" clean --delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters