mirror of https://github.com/rwf2/Rocket.git
Use D: disk on Windows for more space.
This fixes the Windows CI: it was previously running out of disk space.
This commit is contained in:
parent
7d895eb9f6
commit
9c4ac79748
|
@ -34,12 +34,14 @@ jobs:
|
||||||
- platform: { name: Linux, distro: ubuntu-latest, toolchain: nightly }
|
- platform: { name: Linux, distro: ubuntu-latest, toolchain: nightly }
|
||||||
test: { name: UI, flag: "--ui" }
|
test: { name: UI, flag: "--ui" }
|
||||||
fallible: true
|
fallible: true
|
||||||
|
- platform: { name: Windows }
|
||||||
|
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Sources
|
- 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'
|
if: matrix.platform.name == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
echo "Freeing up disk space on Linux CI"
|
echo "Freeing up disk space on Linux CI"
|
||||||
|
@ -100,7 +102,16 @@ jobs:
|
||||||
with:
|
with:
|
||||||
key: ${{ matrix.test.name }}-${{ steps.toolchain.outputs.cachekey }}
|
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
|
- name: Run Tests
|
||||||
continue-on-error: ${{ matrix.fallible }}
|
continue-on-error: ${{ matrix.fallible }}
|
||||||
|
working-directory: ${{ matrix.working-directory || github.workspace }}
|
||||||
run: ./scripts/test.sh ${{ matrix.test.flag }} -q
|
run: ./scripts/test.sh ${{ matrix.test.flag }} -q
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in New Issue