SWIG: fix compilation with swig 4.3.0 #54
Workflow file for this run
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
name: PIP packages | |
on: | |
push: | |
tags: ["v*"] | |
env: | |
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
jobs: | |
linux: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
pyver: [cp310-cp310, cp312-cp312] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Docker Image | |
run: docker build SDK -t pypi | |
- name: Build | |
run: | | |
docker run -e PYVER=${{ matrix.pyver }} -e SKBUILD_BUILD_OPTIONS=-j4 --rm -v `pwd`:/workspace pypi | |
f=`ls *.whl` | |
mv $f ${f/linux/manylinux_2_28} | |
pip3 install twine | |
python -m twine upload --repository pypi *.whl | |
windows: | |
runs-on: windows-2019 | |
strategy: | |
matrix: | |
pyver: ['3.10', '3.12'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
toolset: 14.1 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.pyver }} | |
# 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.275.0/windows/VulkanSDK-1.3.275.0-Installer.exe | |
.\VulkanSDK-1.3.275.0-Installer.exe --accept-licenses --default-answer --confirm-command install | |
- name: Build | |
run: | | |
python -m pip install --upgrade pip==24.0 | |
pip install setuptools wheel twine | |
pip wheel . --verbose | |
python -m twine upload --repository pypi *.whl | |
env: | |
VULKAN_SDK: C:\VulkanSDK\1.3.275.0 | |
SKBUILD_BUILD_OPTIONS: -j4 | |
macos: | |
runs-on: macos-13 | |
strategy: | |
matrix: | |
pyver: ['3.10', '3.12'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.pyver }} | |
- name: Build | |
run: | | |
pip install setuptools wheel twine | |
pip wheel . --verbose | |
python -m twine upload --repository pypi *.whl | |
env: | |
SKBUILD_BUILD_OPTIONS: -j3 |