Skip to content

Commit

Permalink
enabled sccache for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaiplesa committed Oct 15, 2019
1 parent e437121 commit b486fa2
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -676,17 +676,21 @@ pipeline {
}
}
}
// stage("sccache") {
// when {
// allOf {
// expression { !DISABLE_SCCACHE }
// }
// }
// steps {
// echo "Enabling sccache"
// powershell "npm config --userconfig=.npmrc set sccache sccache"
// }
// }
stage("sccache") {
when {
allOf {
expression { !DISABLE_SCCACHE }
}
}
steps {
echo "Enabling sccache"
powershell """
sccache --start-server
\$ErrorActionPreference = "Stop"
npm config --userconfig=.npmrc set sccache sccache
"""
}
}
stage("build") {
environment {
SIGN_WIDEVINE_CERT = credentials("widevine_brave_prod_cert.der")
Expand Down Expand Up @@ -811,6 +815,7 @@ def setEnv() {
GITHUB_CREDENTIAL_ID = "brave-builds-github-token-for-pr-builder"
RUST_LOG = "sccache=warn"
RUST_BACKTRACE = "1"
SCCACHE_IDLE_TIMEOUT = 0
SKIP = false
SKIP_ANDROID = false
SKIP_IOS = false
Expand Down

0 comments on commit b486fa2

Please sign in to comment.