Skip to content

Commit

Permalink
Issue #12 try with build and no uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
thompson318 committed Feb 21, 2024
1 parent ac2417f commit 7159d28
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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: |
Expand All @@ -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

0 comments on commit 7159d28

Please sign in to comment.