diff --git a/.github/workflows/build_branch.yaml b/.github/workflows/build_branch.yaml index c5fe9238..f0980163 100644 --- a/.github/workflows/build_branch.yaml +++ b/.github/workflows/build_branch.yaml @@ -35,28 +35,18 @@ jobs: runs_on: cloud-image-runner-arm64 steps: + # The github runners have a lot of space in /mnt, but apparently not enough in /. This step removes about 13G. + - name: remove unneeded runner software + run: | + df -h + du -chs /usr/share/dotnet /usr/local/lib/android /opt/microsoft || true + sudo rm -fr /usr/share/dotnet /usr/local/lib/android /opt/microsoft || true + sudo docker image prune --all --force || true + df -h + - name: Checkout code uses: actions/checkout@v4 - - name: Install docker (arm64 beta) - if: matrix.platform == 'arm64' - run: | - sudo apt-get update - sudo apt-get install -y ca-certificates curl acl build-essential - sudo install -m 0755 -d /etc/apt/keyrings - sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc - sudo chmod a+r /etc/apt/keyrings/docker.asc - - echo \ - "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ - $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ - sudo tee /etc/apt/sources.list.d/docker.list > /dev/null - sudo apt-get update - - sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin - sudo usermod -aG docker $USER - sudo setfacl --modify user:$USER:rw /var/run/docker.sock - - name: Login to Docker Hub uses: docker/login-action@v3 with: