diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 345f31638f..383016b627 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -355,10 +355,29 @@ jobs: - name: Install CUDA Toolkit 13.0 (arm64 SBSA) run: | - wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/sbsa/cuda-keyring_1.1-1_all.deb + for source_file in \ + /etc/apt/sources.list \ + /etc/apt/sources.list.d/*.list \ + /etc/apt/sources.list.d/*.sources; do + if [[ -f "$source_file" ]]; then + sudo sed -i \ + 's|http://ports.ubuntu.com/ubuntu-ports|https://ports.ubuntu.com/ubuntu-ports|g' \ + "$source_file" + fi + done + + apt_options=( + -o Acquire::ForceIPv4=true + -o Acquire::Retries=3 + -o Acquire::http::Timeout=30 + -o Acquire::https::Timeout=30 + ) + + wget --inet4-only --tries=3 --timeout=30 \ + https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/sbsa/cuda-keyring_1.1-1_all.deb sudo dpkg -i cuda-keyring_1.1-1_all.deb - sudo apt-get update - sudo apt-get install -y cuda-toolkit-13-0 + sudo apt-get "${apt_options[@]}" update + sudo apt-get "${apt_options[@]}" install -y cuda-toolkit-13-0 echo "/usr/local/cuda/bin" >> $GITHUB_PATH /usr/local/cuda/bin/nvcc --version shell: bash @@ -780,16 +799,38 @@ jobs: with: persist-credentials: false + - name: Free up disk space + run: | + echo "Disk usage before cleanup:" + df -h + docker system df || true + + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf /opt/hostedtoolcache/CodeQL + docker system prune --all --force --volumes + + echo "Disk usage after cleanup:" + df -h + docker system df || true + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Build Docker image run: | - docker build -f docker/mooncake.Dockerfile \ + docker build --progress=plain -f docker/mooncake.Dockerfile \ --build-arg PYTHON_VERSION=3.10 \ + --build-arg CMAKE_BUILD_TYPE=Release \ --build-arg EP_TORCH_VERSIONS="2.12.1" \ -t mooncake:from-source . + - name: Report final disk usage + if: always() + run: | + df -h + docker system df || true + spell-check: name: Spell Check with Typos if: >-