Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 112 additions & 43 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,15 @@ jobs:
needs: [test, lint]
steps:
- name: Clear Space
if: github.event_name == 'pull_request'
# Note: Manual cleanup sufficient for CPU images (python:3.12-slim base ~150MB)
# Only CUDA images need aggressive cleanup due to their ~10-15GB size
run: |
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf "$AGENT_TOOLSDIRECTORY"
docker system prune -af
df -h

- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -132,13 +135,20 @@ jobs:
runs-on: ubuntu-latest
needs: [test, lint]
steps:
- name: Clear Space
if: github.event_name == 'pull_request'
- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true

- name: Additional cleanup and report
run: |
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf "$AGENT_TOOLSDIRECTORY"
docker system prune -af
df -h

- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -179,13 +189,20 @@ jobs:
runs-on: ubuntu-latest
needs: [test, lint]
steps:
- name: Clear Space
if: github.event_name == 'pull_request'
- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true

- name: Additional cleanup and report
run: |
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf "$AGENT_TOOLSDIRECTORY"
docker system prune -af
df -h

- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -247,12 +264,20 @@ jobs:
needs: [test, lint, docker-test, release]
if: github.ref == 'refs/heads/main' && github.event_name == 'push' && !needs.release.outputs.release_created
steps:
- name: Clear Space
- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true

- name: Additional cleanup and report
run: |
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf "$AGENT_TOOLSDIRECTORY"
docker system prune -af
df -h

- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -306,6 +331,8 @@ jobs:
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf "$AGENT_TOOLSDIRECTORY"
docker system prune -af
df -h

- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -353,12 +380,20 @@ jobs:
needs: [test, lint, docker-test, docker-test-lb, release]
if: github.ref == 'refs/heads/main' && github.event_name == 'push' && !needs.release.outputs.release_created
steps:
- name: Clear Space
- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true

- name: Additional cleanup and report
run: |
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf "$AGENT_TOOLSDIRECTORY"
docker system prune -af
df -h

- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -406,12 +441,20 @@ jobs:
needs: [test, lint, docker-test, docker-test-lb-cpu, release]
if: github.ref == 'refs/heads/main' && github.event_name == 'push' && !needs.release.outputs.release_created
steps:
- name: Clear Space
- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true

- name: Additional cleanup and report
run: |
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf "$AGENT_TOOLSDIRECTORY"
docker system prune -af
df -h

- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -459,12 +502,20 @@ jobs:
needs: [release]
if: needs.release.outputs.release_created
steps:
- name: Clear Space
- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true

- name: Additional cleanup and report
run: |
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf "$AGENT_TOOLSDIRECTORY"
docker system prune -af
df -h

- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -528,6 +579,8 @@ jobs:
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf "$AGENT_TOOLSDIRECTORY"
docker system prune -af
df -h

- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -585,12 +638,20 @@ jobs:
needs: [release]
if: needs.release.outputs.release_created
steps:
- name: Clear Space
- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true

- name: Additional cleanup and report
run: |
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf "$AGENT_TOOLSDIRECTORY"
docker system prune -af
df -h

- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -648,12 +709,20 @@ jobs:
needs: [release]
if: needs.release.outputs.release_created
steps:
- name: Clear Space
- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true

- name: Additional cleanup and report
run: |
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf "$AGENT_TOOLSDIRECTORY"
docker system prune -af
df -h

- name: Checkout repository
uses: actions/checkout@v4
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ RUN mkdir -p /root/.cache/apt/archives/partial \
&& echo 'Dir::Cache "/root/.cache/apt";' > /etc/apt/apt.conf.d/01cache

# Install system dependencies and uv
# Note: build-essential not pre-installed to reduce image size (400MB savings)
# Automatic detection will install it when needed (no manual action required)
# Advanced: Users can pre-install via system_dependencies=["build-essential"]
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \
build-essential curl ca-certificates nala git \
curl ca-certificates nala git \
&& curl -LsSf https://astral.sh/uv/install.sh | sh \
&& cp ~/.local/bin/uv /usr/local/bin/uv \
&& chmod +x /usr/local/bin/uv \
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile-cpu
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ RUN mkdir -p /root/.cache/apt/archives/partial \
&& echo 'Dir::Cache "/root/.cache/apt";' > /etc/apt/apt.conf.d/01cache

# Install system dependencies and uv
# Note: build-essential not pre-installed to reduce image size (400MB savings)
# Automatic detection will install it when needed (no manual action required)
# Advanced: Users can pre-install via system_dependencies=["build-essential"]
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \
build-essential curl ca-certificates nala git \
curl ca-certificates nala git \
&& curl -LsSf https://astral.sh/uv/install.sh | sh \
&& cp ~/.local/bin/uv /usr/local/bin/uv \
&& chmod +x /usr/local/bin/uv \
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile-lb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ RUN mkdir -p /root/.cache/apt/archives/partial \
&& echo 'Dir::Cache "/root/.cache/apt";' > /etc/apt/apt.conf.d/01cache

# Install system dependencies and uv
# Note: build-essential not pre-installed to reduce image size (400MB savings)
# Automatic detection will install it when needed (no manual action required)
# Advanced: Users can pre-install via system_dependencies=["build-essential"]
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \
build-essential curl ca-certificates nala git \
curl ca-certificates nala git \
&& curl -LsSf https://astral.sh/uv/install.sh | sh \
&& cp ~/.local/bin/uv /usr/local/bin/uv \
&& chmod +x /usr/local/bin/uv \
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile-lb-cpu
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ RUN mkdir -p /root/.cache/apt/archives/partial \
&& echo 'Dir::Cache "/root/.cache/apt";' > /etc/apt/apt.conf.d/01cache

# Install system dependencies and uv
# Note: build-essential not pre-installed to reduce image size (400MB savings)
# Automatic detection will install it when needed (no manual action required)
# Advanced: Users can pre-install via system_dependencies=["build-essential"]
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \
build-essential curl ca-certificates nala git \
curl ca-certificates nala git \
&& curl -LsSf https://astral.sh/uv/install.sh | sh \
&& cp ~/.local/bin/uv /usr/local/bin/uv \
&& chmod +x /usr/local/bin/uv \
Expand Down
Loading
Loading