mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
How much does sccache help vs target cache
This commit is contained in:
parent
04740af787
commit
8152490068
1 changed files with 0 additions and 29 deletions
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
|
@ -47,7 +47,6 @@ jobs:
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
RUST_BACKTRACE: full
|
RUST_BACKTRACE: full
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
RUSTC_WRAPPER: sccache
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Configure git
|
- name: Configure git
|
||||||
|
@ -80,31 +79,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
rust-version: 1.50.0
|
rust-version: 1.50.0
|
||||||
|
|
||||||
- name: Install and start sccache
|
|
||||||
shell: pwsh
|
|
||||||
env:
|
|
||||||
SCCACHE_DIR: ${{ github.workspace }}/target/sccache
|
|
||||||
SCCACHE_CACHE_SIZE: 128M
|
|
||||||
SCCACHE_IDLE_TIMEOUT: 0
|
|
||||||
run: |
|
|
||||||
$version = "v0.2.15"
|
|
||||||
$platform =
|
|
||||||
@{ "macOS" = "x86_64-apple-darwin"
|
|
||||||
"Linux" = "x86_64-unknown-linux-musl"
|
|
||||||
"Windows" = "x86_64-pc-windows-msvc"
|
|
||||||
}.${{ runner.os }}
|
|
||||||
$basename = "sccache-$version-$platform"
|
|
||||||
chmod u+x $basename/sccache
|
|
||||||
$url = "https://github.com/mozilla/sccache/releases/download/" +
|
|
||||||
"$version/$basename.tar.gz"
|
|
||||||
cd ~
|
|
||||||
curl -LO $url
|
|
||||||
tar -xzvf "$basename.tar.gz"
|
|
||||||
chmod u+x $basename/sccache
|
|
||||||
. $basename/sccache --start-server
|
|
||||||
echo "$(pwd)/$basename" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
||||||
|
|
||||||
|
|
||||||
- name: Install clippy and rustfmt
|
- name: Install clippy and rustfmt
|
||||||
if: matrix.kind == 'lint'
|
if: matrix.kind == 'lint'
|
||||||
run: |
|
run: |
|
||||||
|
@ -360,6 +334,3 @@ jobs:
|
||||||
target/release/lib.deno.d.ts
|
target/release/lib.deno.d.ts
|
||||||
draft: true
|
draft: true
|
||||||
|
|
||||||
- name: Stop sccache
|
|
||||||
if: always()
|
|
||||||
run: sccache --stop-server
|
|
||||||
|
|
Loading…
Reference in a new issue