Skip to content

Commit

Permalink
unified python ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Apr 4, 2024
1 parent 4fcdbb2 commit 0e13157
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,28 @@ jobs:
pip install pytest setuptools wheel twine
- name: build
run: pip install .
if: matrix.os == 'ubuntu-latest'
env:
CC: clang
CXX: clang++
run: |
mkdir build && cd build
cmake -DNCNN_VULKAN=ON -DNCNN_PYTHON=ON ..
cmake --build . -j $(nproc)
- name: build
if: matrix.os == 'macos-latest'
run: |
mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/ios.toolchain.cmake -DPLATFORM=MAC -DARCHS="x86_64" -DNCNN_VULKAN=ON -DNCNN_PYTHON=ON ..
cmake --build . -j 4
- name: build
if: matrix.os == 'windows-latest'
run: |
mkdir build; cd build
cmake -T v142,host=x64 -A x64 -DNCNN_VULKAN=ON -DNCNN_PYTHON=ON ..
cmake --build . --config Release -j 4
- name: build-python
run: cd python && pip install .
- name: test
env:
VK_ICD_FILENAMES: $GITHUB_WORKSPACE/swiftshader-install/vk_swiftshader_icd.json
Expand Down

0 comments on commit 0e13157

Please sign in to comment.