forked from PlusToolkit/ndicapi
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #12 try with build and no uploads
- Loading branch information
1 parent
ac2417f
commit 7159d28
Showing
1 changed file
with
5 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install wheel twine auditwheel | ||
pip install wheel twine auditwheel build | ||
- name: Add msbuild to PATH | ||
if: matrix.os == 'windows-latest' | ||
|
@@ -37,8 +37,7 @@ jobs: | |
cmake -G "Visual Studio 17 2022" -A x64 -DBUILD_PYTHON:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -Dndicapi_BUILD_APPLICATIONS:BOOL=OFF -DCMAKE_INSTALL_PREFIX=../install .. | ||
cmake --build . | ||
cd ../ | ||
python.exe setup.py sdist bdist_wheel --plat-name win_amd64 | ||
python -m twine upload -u __token__ -p ${{secrets.PYPI_API_TOKEN}} dist/* --skip-existing | ||
python.exe -m build --plat-name win_amd64 | ||
rm -r build | ||
rm -r install | ||
|
@@ -51,8 +50,7 @@ jobs: | |
cmake -G "Visual Studio 17" -A Win32 -DBUILD_PYTHON:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -Dndicapi_BUILD_APPLICATIONS:BOOL=OFF -DCMAKE_INSTALL_PREFIX=../install .. | ||
cmake --build . | ||
cd ../ | ||
python.exe setup.py sdist bdist_wheel --plat-name win32 | ||
python -m twine upload -u __token__ -p ${{secrets.PYPI_API_TOKEN}} dist/* --skip-existing | ||
python.exe -m build --plat-name win32 | ||
rm -r build | ||
rm -r install | ||
|
@@ -64,18 +62,14 @@ jobs: | |
cmake -DBUILD_PYTHON:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -Dndicapi_BUILD_APPLICATIONS:BOOL=OFF .. | ||
make | ||
cd .. | ||
python -m build | ||
|
||
- name: build ubuntu manylinux | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: RalfG/[email protected]_x86_64 | ||
with: | ||
python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310' | ||
|
||
- name: upload manylinux | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
python -m twine upload -u __token__ -p ${{secrets.PYPI_API_TOKEN}} dist/*-manylinux*.whl --skip-existing | ||
- name: build macos | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
|
@@ -84,6 +78,5 @@ jobs: | |
cmake -DBUILD_PYTHON:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -Dndicapi_BUILD_APPLICATIONS:BOOL=OFF .. | ||
make | ||
cd .. | ||
python setup.py sdist bdist_wheel | ||
python -m twine upload -u __token__ -p ${{secrets.PYPI_API_TOKEN}} dist/* --skip-existing | ||
python -m build | ||