From 1e28d6bdacea20cddaa4c3558b18b162d3b07d56 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 14 Mar 2020 12:53:06 -0400 Subject: ci: Use Azure blob storage for sccache (#4354) --- .github/workflows/ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ddfde537..002406e3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: timeout-minutes: 60 strategy: matrix: - os: [macOS-latest, windows-2019, ubuntu-16.04] + os: [macOS-latest, ubuntu-16.04, windows-2019] kind: ['test_release', 'test_debug', 'bench', 'lint'] exclude: - os: windows-2019 @@ -106,7 +106,19 @@ jobs: rustc --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: AWS_ACCESS_KEY_ID: AKIAIVRN52PLDBP55LBQ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} -- cgit v1.2.3