From be71475b1313ff017acc1efab16e0fea84cd32f5 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 3 Aug 2025 17:21:41 +0200 Subject: [PATCH] GHA/windows: show disk space used in each job Also: - make the dl-minge 6.4.0 job shared. To save 761MB of disk space, and speed up examples build step by 50% (10 seconds). Closes #18150 --- .github/workflows/windows.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index fb6e19d2ed..1d33f550a5 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -182,6 +182,9 @@ jobs: make -C bld V=1 examples fi + - name: 'disk space used' + run: du -sh .; echo; du -sh -t 250KB ./*; echo; du -h -t 50KB bld + msys2: # both msys and mingw-w64 name: "${{ matrix.sys == 'msys' && 'msys2' || 'mingw' }}, ${{ matrix.build == 'cmake' && 'CM' || 'AM' }} ${{ matrix.env }} ${{ matrix.name }} ${{ matrix.test }}" runs-on: ${{ matrix.image || 'windows-latest' }} @@ -406,6 +409,9 @@ jobs: make -C bld V=1 examples fi + - name: 'disk space used' + run: du -sh .; echo; du -sh -t 250KB ./*; echo; du -h -t 50KB bld + mingw-w64-standalone-downloads: name: 'dl-mingw, CM ${{ matrix.ver }}-${{ matrix.env }} ${{ matrix.name }}' runs-on: windows-latest @@ -448,7 +454,7 @@ jobs: env: 'i686' ver: '6.4.0' url: 'https://downloads.sourceforge.net/mingw-w64/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/6.4.0/threads-win32/dwarf/i686-6.4.0-release-win32-dwarf-rt_v5-rev0.7z' - config: '-DENABLE_DEBUG=ON -DBUILD_SHARED_LIBS=OFF -DCURL_USE_SCHANNEL=ON -DENABLE_UNICODE=OFF -DCMAKE_UNITY_BUILD=OFF' + config: '-DENABLE_DEBUG=ON -DCURL_USE_SCHANNEL=ON -DENABLE_UNICODE=OFF -DCMAKE_UNITY_BUILD=OFF' type: 'Debug' tflags: 'skiprun' - name: 'schannel !examples' # mingw-w64 3.0 @@ -585,6 +591,9 @@ jobs: PATH="/d/my-cache/${MATRIX_DIR}/bin:$PATH" cmake --build bld --target curl-examples + - name: 'disk space used' + run: du -sh .; echo; du -sh -t 250KB ./*; echo; du -h -t 50KB bld + linux-cross-mingw-w64: name: "linux-mingw, ${{ matrix.build == 'cmake' && 'CM' || 'AM' }} ${{ matrix.compiler }}" runs-on: ubuntu-latest @@ -684,6 +693,9 @@ jobs: make -C bld examples fi + - name: 'disk space used' + run: du -sh .; echo; du -sh -t 250KB ./*; echo; du -h -t 50KB bld + msvc: name: 'msvc, CM ${{ matrix.arch }}-${{ matrix.plat }} ${{ matrix.name }}' runs-on: ${{ matrix.image || 'windows-latest' }} @@ -925,3 +937,6 @@ jobs: timeout-minutes: 5 if: ${{ contains(matrix.name, '+examples') }} run: cmake --build bld --config "${MATRIX_TYPE}" --parallel 5 --target curl-examples + + - name: 'disk space used' + run: du -sh .; echo; du -sh -t 250KB ./*; echo; du -h -t 50KB bld -- 2.47.3