From 9c4ac797481df34b9d9aa78a13b27aae248cb3c7 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Mon, 3 Apr 2023 12:18:09 -0700 Subject: [PATCH] Use D: disk on Windows for more space. This fixes the Windows CI: it was previously running out of disk space. --- .github/workflows/ci.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8612056c..a7a0f5cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,12 +34,14 @@ jobs: - platform: { name: Linux, distro: ubuntu-latest, toolchain: nightly } test: { name: UI, flag: "--ui" } fallible: true + - platform: { name: Windows } + working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}" steps: - name: Checkout Sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 - - name: Free Disk Space + - name: Free Disk Space (Linux) if: matrix.platform.name == 'Linux' run: | echo "Freeing up disk space on Linux CI" @@ -100,7 +102,16 @@ jobs: with: key: ${{ matrix.test.name }}-${{ steps.toolchain.outputs.cachekey }} + # Don't run out of disk space on Windows. C: has much much space than D:. + - name: Switch Disk (Windows) + if: matrix.platform.name == 'Windows' + run: | + Get-PSDrive + cp D:\a C:\ -Recurse + Get-PSDrive + - name: Run Tests continue-on-error: ${{ matrix.fallible }} + working-directory: ${{ matrix.working-directory || github.workspace }} run: ./scripts/test.sh ${{ matrix.test.flag }} -q shell: bash