Skip to content

Commit a00af62

Browse files
committed
Added macos debug to check if it fixes seg fault
1 parent 64de1ef commit a00af62

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/python_ci.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,7 @@ jobs:
5353
env:
5454
RUSTFLAGS: >-
5555
-l Advapi32
56-
CARGO_TARGET_DIR: C:/t
57-
CARGO_HOME: C:/cargo
5856
steps:
59-
- name: Enable long paths
60-
run: |
61-
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
62-
git config --system core.longpaths true
6357
- uses: actions/checkout@v4
6458
- uses: actions-rust-lang/setup-rust-toolchain@v1
6559
with:
@@ -77,15 +71,17 @@ jobs:
7771
stripdown: true
7872
- name: "Build windows python wheel"
7973
run: |
80-
# Use very short paths to avoid Windows 260 char limit
81-
mv ./nobodywho C:/n
82-
cd C:/n/python
83-
maturin build --verbose ${{ matrix.profile == 'release' && '--release' || '' }} --locked --target ${{ matrix.target }} --target-dir C:/t
74+
mv ./nobodywho/* C:/
75+
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
76+
git config --system core.longpaths true
77+
cd C:/
78+
cd python
79+
maturin build --verbose ${{ matrix.profile == 'release' && '--release' || '' }} --locked --target ${{ matrix.target }}
8480
- name: "Upload wheel artifact"
8581
uses: actions/upload-artifact@v4
8682
with:
8783
name: nobodywhopython_windows
88-
path: C:/t/wheels/nobodywhopython*.whl
84+
path: C:/target/wheels/nobodywhopython*.whl
8985

9086

9187
mac-os-build:
@@ -253,7 +249,13 @@ jobs:
253249
run: |
254250
source ./maturinvenv/bin/activate
255251
python -c "import nobodywhopython; print('Import successful')"
256-
python nobodywho/python/small_model_test.py "macos/nobodypython/models/Qwen3-0.6B-UD-Q6_K_XL.gguf"
252+
# Try to run with more verbose output
253+
python nobodywho/python/small_model_test.py "macos/nobodypython/models/Qwen3-0.6B-UD-Q6_K_XL.gguf" || {
254+
echo "Segfault occurred, trying with different settings..."
255+
export GGML_METAL_DISABLE=1
256+
python nobodywho/python/small_model_test.py "macos/nobodypython/models/Qwen3-0.6B-UD-Q6_K_XL.gguf"
257+
}
258+
257259
258260
publish-wheels:
259261
needs: [linux-pip-install-test, windows-pip-install-test, mac-os-pip-install-test]

0 commit comments

Comments
 (0)