Skip to content

Commit 737468a

Browse files
authored
windows build & test
1 parent 26912f6 commit 737468a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/win_build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ jobs:
3434
$env:PATH += ";C:\taichi_clang\bin"
3535
$env:PYTHONPATH = "$env:TAICHI_REPO_DIR\python"
3636
$env:PATH += ";$env:TAICHI_REPO_DIR\bin"
37-
echo $env:TAICHI_REPO_DIR
38-
echo $env:PYTHONPATH
39-
echo $env:PATH
4037
clang --version
4138
cd D:\a\test_actions\test_actions
4239
python -m pip install numpy

python/taichi/diagnose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def try_print(tag, expr):
3939
try:
4040
cmd = f'import taichi as ti; print("===="); print({expr}, end="")'
4141
ret = subprocess.check_output([executable, '-c', cmd]).decode()
42-
ret = ret.split('====\n', maxsplit=1)[1]
42+
ret = ret.split('====', maxsplit=1)[1]
4343
print(f'{tag}: {ret}')
4444
except Exception as e:
4545
print(f'{tag}: ERROR {e}')

tests/python/test_indices_assert.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import taichi as ti
22
import pytest
3+
import platform
34

45

6+
@pytest.mark.skipif(platform.system() == "Windows",
7+
reason="Too much virtual memory for github windows env.")
58
@ti.test(debug=True, gdb_trigger=False, arch=[ti.cpu])
69
def test_indices_assert():
710

8-
overflow = ti.field(ti.i32, (334, 334, 334, 2 * 10))
11+
overflow = ti.field(int, (334, 334, 334, 2 * 10))
912

1013
@ti.kernel
1114
def access_overflow():

0 commit comments

Comments
 (0)