Skip to content

Commit 249c3fb

Browse files
authored
Fix 32-bit CI image builds after ml_dtypes 0.6 release (#65)
1 parent b142762 commit 249c3fb

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
fi
8484
8585
- name: Ensure test image is available (${{ matrix.arch_name }})
86+
id: ensure-test-image
8687
run: |
8788
bash "${{ matrix.test_script }}" load
8889
@@ -91,7 +92,7 @@ jobs:
9192
bash "${{ matrix.test_script }}" run -vv test
9293
9394
- name: Save test image to cache path (${{ matrix.arch_name }})
94-
if: always()
95+
if: ${{ !cancelled() && steps.ensure-test-image.outcome == 'success' }}
9596
run: |
9697
docker image inspect "${{ matrix.image_name }}" >/dev/null 2>&1
9798
docker save "${{ matrix.image_name }}" -o "${{ matrix.image_tar }}"

‎etc/linux-container.Dockerfile‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ RUN python -m pip install -U --no-cache-dir pip
1313
RUN NINJAFLAGS='-v' python -m pip install -v --no-cache-dir \
1414
"numpy<2"
1515

16-
RUN NINJAFLAGS='-v' python -m pip install -v --no-build-isolation --no-deps --no-cache-dir \
17-
ml_dtypes
16+
# Build against the installed NumPy 1.x on 32-bit platforms. ml_dtypes 0.6
17+
# requires NumPy 2 and uses a different build backend.
18+
RUN python -m pip install --no-cache-dir "setuptools~=80.9.0" \
19+
&& NINJAFLAGS='-v' python -m pip install -v --no-build-isolation --no-deps --no-cache-dir \
20+
"ml_dtypes==0.5.4"
1821

1922
RUN NINJAFLAGS='-v' python -m pip install -v --no-cache-dir \
2023
psutil \

0 commit comments

Comments
 (0)