Skip to content

Commit 47361d1

Browse files
move the env
1 parent 247bdda commit 47361d1

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

.github/workflows/testing_wheels.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,6 @@ jobs:
3737
architecture: x64
3838
cibw:
3939
build: "cp36-win_amd64 cp37-win_amd64 cp38-win_amd64 cp39-win_amd64"
40-
env:
41-
CIBW_BUILD: "${{ matrix.cibw.build || '*' }}"
42-
CIBW_ARCHS: "${{ matrix.cibw.arch || 'auto' }}"
43-
CIBW_MANYLINUX_X86_64_IMAGE: "${{ matrix.cibw.manylinux_image }}"
44-
CIBW_BEFORE_ALL_LINUX: "source build_tools/cuda_install.sh && echo $PATH"
45-
CIBW_ENVIRONMENT_LINUX: PATH=/usr/local/cuda-11/bin:$PATH
46-
CIBW_ENVIRONMENT_PASS_LINUX: PATH
47-
CIBW_BEFORE_BUILD_MACOS: "brew install libomp"
48-
# *cuda.so was not built, suspect `which nvcc` is null
49-
CIBW_BEFORE_BUILD_LINUX: "echo $PATH && which nvcc"
50-
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
51-
# due to package and module name conflict have to temporarily move it away to run tests
52-
CIBW_BEFORE_TEST: "mv {package}/qsimcirq /tmp"
53-
CIBW_TEST_COMMAND: "pytest {package}/qsimcirq_tests/qsimcirq_test.py && mv /tmp/qsimcirq {package}"
5440
steps:
5541
- uses: actions/checkout@v2
5642

@@ -99,6 +85,21 @@ jobs:
9985
# run: bash build_tools/test_libs.sh
10086

10187
- name: Build wheels
88+
env:
89+
CIBW_BUILD: "${{ matrix.cibw.build || '*' }}"
90+
CIBW_ARCHS: "${{ matrix.cibw.arch || 'auto' }}"
91+
CIBW_MANYLINUX_X86_64_IMAGE: "${{ matrix.cibw.manylinux_image }}"
92+
CIBW_BEFORE_ALL_LINUX: "source build_tools/cuda_install.sh && echo $PATH"
93+
CIBW_ENVIRONMENT_LINUX: PATH=/usr/local/cuda-11/bin:$PATH
94+
# overwriting PATH is breaking Python - need to add to PATH somehow?
95+
CIBW_ENVIRONMENT_PASS_LINUX: PATH
96+
CIBW_BEFORE_BUILD_MACOS: "brew install libomp"
97+
# *cuda.so was not built, suspect `which nvcc` is null
98+
CIBW_BEFORE_BUILD_LINUX: "echo $PATH && which nvcc"
99+
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
100+
# due to package and module name conflict have to temporarily move it away to run tests
101+
CIBW_BEFORE_TEST: "mv {package}/qsimcirq /tmp"
102+
CIBW_TEST_COMMAND: "pytest {package}/qsimcirq_tests/qsimcirq_test.py && mv /tmp/qsimcirq {package}"
102103
run: python -m cibuildwheel --output-dir wheelhouse
103104

104105
- uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)