Skip to content

Commit 2c1003a

Browse files
committed
Still trying to fix crossplatform CI build. Definitely not my strongest skill
1 parent 8593ee8 commit 2c1003a

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/build-wheels.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,14 @@ jobs:
269269
270270
- name: Install build dependencies
271271
run: |
272-
pip install build wheel torch numpy
272+
pip install build wheel numpy
273+
pip install --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple torch
273274
274275
- name: Build wheel
275276
env:
276277
DAWN_PREFIX: ${{ github.workspace }}/dawn-install
277278
run: |
278-
pip wheel . --no-deps -w dist/
279+
pip wheel . --no-deps --no-build-isolation -w dist/
279280
280281
- name: Upload wheel
281282
uses: actions/upload-artifact@v4
@@ -310,7 +311,7 @@ jobs:
310311
env:
311312
DAWN_PREFIX: ${{ github.workspace }}/dawn-install
312313
run: |
313-
pip wheel . --no-deps -w dist/
314+
pip wheel . --no-deps --no-build-isolation -w dist/
314315
315316
- name: Upload wheel
316317
uses: actions/upload-artifact@v4
@@ -348,7 +349,7 @@ jobs:
348349
env:
349350
DAWN_PREFIX: ${{ github.workspace }}/dawn-install
350351
run: |
351-
pip wheel . --no-deps -w dist/
352+
pip wheel . --no-deps --no-build-isolation -w dist/
352353
353354
- name: Upload wheel
354355
uses: actions/upload-artifact@v4

scripts/build-dawn.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@
55

66
set -e
77

8-
INSTALL_PREFIX="${1:-$PWD/dawn-install}"
9-
DAWN_DIR="${DAWN_DIR:-$PWD/dawn}"
8+
ROOT_DIR="$PWD"
9+
INSTALL_PREFIX="${1:-$ROOT_DIR/dawn-install}"
10+
DAWN_DIR="${DAWN_DIR:-$ROOT_DIR/dawn}"
11+
12+
# Normalize install prefix to an absolute path so relative args work after cd.
13+
if [[ "$INSTALL_PREFIX" != /* ]]; then
14+
INSTALL_PREFIX="$ROOT_DIR/$INSTALL_PREFIX"
15+
fi
1016
NUM_JOBS="${NUM_JOBS:-$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 4)}"
1117

1218
echo "Building Dawn..."

0 commit comments

Comments
 (0)