Skip to content

Commit cd1c2cd

Browse files
committed
CD: remove things that are not needed to run cibuildwheel.
1 parent ca29799 commit cd1c2cd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/cd.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,14 @@ jobs:
153153
timezoneMacos: 'Pacific/Auckland'
154154
- name: Check out libOpenCOR
155155
uses: actions/checkout@v4
156+
- name: Free disk space (Linux only)
157+
if: ${{ runner.os == 'Linux' }}
158+
run: |
159+
df -h
160+
sudo rm -rf /opt/hostedtoolcache
161+
df -h
162+
sudo docker image prune --all --force
163+
df -h
156164
- name: Configure MSVC
157165
if: ${{ runner.os == 'Windows' }}
158166
uses: ilammy/msvc-dev-cmd@v1
@@ -170,6 +178,9 @@ jobs:
170178
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_34
171179
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_34
172180
CIBW_SKIP: 'cp38* *musllinux*'
181+
- name: Check disk space after build
182+
if: ${{ runner.os == 'Linux' }}
183+
run: df -h
173184
- name: Upload Python wheel artifacts
174185
uses: actions/upload-artifact@v4
175186
with:

0 commit comments

Comments
 (0)