Skip to content

Commit

Permalink
PIP: rebuild windows package due to actions/runner-images#6627
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Dec 2, 2022
1 parent 0df846d commit b8dbc19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 28 deletions.
33 changes: 6 additions & 27 deletions .github/workflows/pip-build.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
name: PIP packages
on:
push:
tags: ["v*"]
branches: [master]
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
jobs:
linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Docker Image
run: docker build SDK -t pypi
- name: Build
run: |
docker run -e PYVER=cp310-cp310 --rm -v `pwd`:/workspace pypi
f=`ls *.whl`
mv $f ${f/linux/manylinux2014}
pip3 install twine
python -m twine upload --repository pypi *.whl
windows:
runs-on: windows-2019
steps:
Expand All @@ -29,6 +16,10 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
# see https://github.com/actions/runner-images/issues/6627#issuecomment-1328214957
- name: Remove Perl Strawberry (Workaround)
run: rm -rf C:/Strawberry/
shell: bash
- name: Install Dependencies
run: |
curl -LO https://sdk.lunarg.com/sdk/download/1.3.224.1/windows/VulkanSDK-1.3.224.1-Installer.exe
Expand All @@ -40,16 +31,4 @@ jobs:
pip wheel . --verbose
python -m twine upload --repository pypi *.whl
env:
VULKAN_SDK: C:\VulkanSDK\1.3.224.1
macos:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build
run: |
pip install setuptools wheel twine
pip wheel . --verbose
python -m twine upload --repository pypi *.whl
VULKAN_SDK: C:\VulkanSDK\1.3.224.1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def main():
"-DCMAKE_INSTALL_RPATH=@loader_path;@loader_path/OGRE"]

version = re.search("project\(OGRE VERSION (\S+)\)", open("CMakeLists.txt").read()).group(1)
# version += ".dev0"
version += ".post1"

skbuild.setup(
name="ogre-python",
Expand Down

0 comments on commit b8dbc19

Please sign in to comment.