From 6cc92a5bc44fa176639db808c113e13b317720d4 Mon Sep 17 00:00:00 2001 From: jwinterm Date: Sat, 20 Jun 2026 14:43:39 -0400 Subject: [PATCH] ci(windows): drop container + free disk so the depends build fits the runner First run was killed mid depends build (runner lost communication = CPU/Memory/disk starvation). Inside a container we cannot reclaim the runner's pre-installed bloat, leaving the static-Qt6 build only ~14G. Run on ubuntu-latest directly, free ~25G (dotnet/android/ghc/CodeQL), sudo the apt steps. --- .github/workflows/build.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d137a61c..8f75a34f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -125,25 +125,32 @@ jobs: build-windows-mingw: name: "Windows x86_64 (mingw cross, depends)" runs-on: ubuntu-latest - container: - image: ubuntu:24.04 env: HOST: x86_64-w64-mingw32 steps: + - name: free disk space + # depends unpacks + builds Qt6/boost/openssl from source — too big for the runner's default + # free /. Drop the GitHub-hosted bloat (dotnet/android/ghc/CodeQL/swift) to free ~25G first. + run: | + echo "before:"; df -h / | tail -1 + sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/.ghcup /usr/local/lib/android \ + /opt/hostedtoolcache/CodeQL /usr/share/swift 2>/dev/null || true + sudo apt-get clean + echo "after:"; df -h / | tail -1 - name: update apt - run: apt update + run: sudo apt-get update - name: install dependencies # depends cross-build deps: the mingw posix cross-compiler + native build tools depends needs. # NO host Qt6 here (unlike the AppImage job) — depends builds a STATIC Qt6 for mingw itself. run: | - apt -y install curl ca-certificates bzip2 xz-utils unzip zip git cmake build-essential ccache \ + sudo apt-get -y install curl ca-certificates bzip2 xz-utils unzip zip git cmake build-essential ccache \ python3 perl pkg-config g++-mingw-w64-x86-64-posix gcc-mingw-w64-x86-64-posix \ autoconf automake libtool gettext bison - name: select posix mingw alternatives # mingw32.mk wants the -posix threading variant (std::thread/mutex/cv need it). run: | - update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix - update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix + sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix + sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix - name: configure git run: git config --global --add safe.directory '*' - uses: actions/checkout@v4