diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-01-11 08:23:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-11 08:23:08 -0500 |
| commit | e26fc195ef97d27dae0ca34b2bf592ae839ca218 (patch) | |
| tree | 8231413f1423d4085407abd43d97a0c2cd40540a /.github/workflows/ci.yml | |
| parent | e246f06cfbcba98c5fc10442113631d16f2ab6de (diff) | |
chore(ci): checkout less submodules based on job (#17343)
Co-authored-by: Luca Casonato <lucacasonato@users.noreply.github.com>
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9861e53ea..4548a7fc2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,7 +58,15 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 5 - submodules: recursive + submodules: false + - name: Clone submodule ./test_util/std + run: git submodule update --init --recursive --depth=1 -- ./test_util/std + - name: Clone submodule ./test_util/wpt + run: git submodule update --init --recursive --depth=1 -- ./test_util/wpt + if: matrix.job == 'test' + - name: Clone submodule ./third_party + run: git submodule update --init --recursive --depth=1 -- ./third_party + if: matrix.job == 'lint' || matrix.job == 'bench' - name: 'Create source tarballs (release, linux)' if: |- startsWith(matrix.os, 'ubuntu') && @@ -71,8 +79,8 @@ jobs: tar --exclude=".git*" --exclude=target --exclude=third_party/prebuilt \ -czvf target/release/deno_src.tar.gz -C .. deno - uses: dtolnay/rust-toolchain@stable - - name: Install Deno - if: matrix.job == 'lint' || matrix.job == 'test' + - if: matrix.job == 'lint' || matrix.job == 'test' + name: Install Deno uses: denoland/setup-deno@v1 with: deno-version: v1.x @@ -80,10 +88,6 @@ jobs: uses: actions/setup-python@v4 with: python-version: 3.8 - - name: Install Node - uses: actions/setup-node@v3 - with: - node-version: 17 - name: Remove unused versions of Python if: 'startsWith(matrix.os, ''windows'')' run: |- @@ -91,6 +95,10 @@ jobs: Where-Object { Test-Path "$_\python.exe" } | Select-Object -Skip 1 | ForEach-Object { Move-Item "$_" "$_.disabled" } + - name: Install Node + uses: actions/setup-node@v3 + with: + node-version: 17 - name: Setup gcloud (unix) if: |- runner.os != 'Windows' && @@ -127,8 +135,8 @@ jobs: github.ref == 'refs/heads/main' shell: bash run: echo "DENO_CANARY=true" >> $GITHUB_ENV - - name: Set up incremental LTO and sysroot build - if: matrix.use_sysroot + - if: matrix.use_sysroot + name: Set up incremental LTO and sysroot build run: |- # Avoid running man-db triggers, which sometimes takes several minutes # to complete. |
