mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
ci: Use Azure blob storage for sccache (#4354)
This commit is contained in:
parent
cd293f7907
commit
1e28d6bdac
2 changed files with 15 additions and 3 deletions
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
@ -9,7 +9,7 @@ jobs:
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macOS-latest, windows-2019, ubuntu-16.04]
|
os: [macOS-latest, ubuntu-16.04, windows-2019]
|
||||||
kind: ['test_release', 'test_debug', 'bench', 'lint']
|
kind: ['test_release', 'test_debug', 'bench', 'lint']
|
||||||
exclude:
|
exclude:
|
||||||
- os: windows-2019
|
- os: windows-2019
|
||||||
|
@ -106,7 +106,19 @@ jobs:
|
||||||
rustc --version
|
rustc --version
|
||||||
cargo --version
|
cargo --version
|
||||||
|
|
||||||
- name: Start sccache
|
- name: Start sccache (azure)
|
||||||
|
if: startsWith(matrix.os, 'windows') == false
|
||||||
|
env:
|
||||||
|
SCCACHE_AZURE_BLOB_CONTAINER: deno-sccache2
|
||||||
|
SCCACHE_AZURE_CONNECTION_STRING: ${{ secrets.SCCACHE_AZURE_CONNECTION_STRING || 'DefaultEndpointsProtocol=https;AccountName=denosccache;EndpointSuffix=core.windows.net' }}
|
||||||
|
SCCACHE_IDLE_TIMEOUT: 0
|
||||||
|
run: sccache --start-server
|
||||||
|
|
||||||
|
# TODO(ry) We want to use Azure because it's cheaper. However sccache on
|
||||||
|
# Windows has a bug when using Azure. The bug manifests itself as a
|
||||||
|
# "multiple input files" error message.
|
||||||
|
- name: Start sccache (s3)
|
||||||
|
if: startsWith(matrix.os, 'windows')
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: AKIAIVRN52PLDBP55LBQ
|
AWS_ACCESS_KEY_ID: AKIAIVRN52PLDBP55LBQ
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit b1103a02e8112a20126c84d2d4751ed1302c8ade
|
Subproject commit d68a4eacf2b62ff43094a8dfe893869d716433c9
|
Loading…
Reference in a new issue