fix(ci)_: move nim cache to workspace tmp folder

An error has shown that Nim compilation uses cache folder in `jenkins` home:
```
clang: error: no such file or directory:
'/Users/jenkins/.cache/nim/nimsuggest_r/@m..@slib@swrappers@slinenoise@slinenoise.c.o'
```
This is a bad idea as parallel CI builds can result in very bizzarre bugs.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2024-10-09 10:25:37 +02:00 committed by Jakub
parent 206bc79ab4
commit 3e4e3591cd
4 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ pipeline {
string( string(
name: 'NIMFLAGS', name: 'NIMFLAGS',
description: 'Extra Nim flags. Examples: --verbosity:2 --passL:"-v" --passC:"-v"', description: 'Extra Nim flags. Examples: --verbosity:2 --passL:"-v" --passC:"-v"',
defaultValue: '--colors:off' defaultValue: "--colors:off --nimcache:${env.WORKSPACE_TMP}/nimcache"
) )
booleanParam( booleanParam(
name: 'USE_MOCKED_KEYCARD_LIB', name: 'USE_MOCKED_KEYCARD_LIB',

View File

@ -27,7 +27,7 @@ pipeline {
string( string(
name: 'NIMFLAGS', name: 'NIMFLAGS',
description: 'Extra Nim flags. Examples: --verbosity:2 --passL:"-v" --passC:"-v"', description: 'Extra Nim flags. Examples: --verbosity:2 --passL:"-v" --passC:"-v"',
defaultValue: '--colors:off' defaultValue: "--colors:off --nimcache:${env.WORKSPACE_TMP}/nimcache"
) )
booleanParam( booleanParam(
name: 'USE_MOCKED_KEYCARD_LIB', name: 'USE_MOCKED_KEYCARD_LIB',

View File

@ -29,7 +29,7 @@ pipeline {
string( string(
name: 'NIMFLAGS', name: 'NIMFLAGS',
description: 'Extra Nim flags. Examples: --verbosity:2 --passL:"-v" --passC:"-v"', description: 'Extra Nim flags. Examples: --verbosity:2 --passL:"-v" --passC:"-v"',
defaultValue: '--colors:off' defaultValue: "--colors:off --nimcache:${env.WORKSPACE_TMP}/nimcache"
) )
booleanParam( booleanParam(
name: 'USE_MOCKED_KEYCARD_LIB', name: 'USE_MOCKED_KEYCARD_LIB',

View File

@ -26,7 +26,7 @@ pipeline {
string( string(
name: 'NIMFLAGS', name: 'NIMFLAGS',
description: 'Extra Nim flags. Examples: --verbosity:2 --passL:"-v" --passC:"-v"', description: 'Extra Nim flags. Examples: --verbosity:2 --passL:"-v" --passC:"-v"',
defaultValue: '--colors:off' defaultValue: "--colors:off --nimcache:${env.WORKSPACE_TMP}/nimcache"
) )
booleanParam( booleanParam(
name: 'USE_MOCKED_KEYCARD_LIB', name: 'USE_MOCKED_KEYCARD_LIB',