Skip to content

Commit

Permalink
Merge pull request capstone-engine#2098 from XVilka/fix-windows-pytho…
Browse files Browse the repository at this point in the history
…n-ci

ci: use proper job syntax for Windows
  • Loading branch information
kabeor authored Jul 20, 2023
2 parents 799aeca + ac7a365 commit e87bb5e
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,20 @@ jobs:
if: matrix.os == 'windows-latest' && matrix.platform == 'x64'
uses: ilammy/msvc-dev-cmd@v1

- name: Install dependencies
- name: Install Python dependencies
if: matrix.os != 'ubuntu-latest'
run: pip install setuptools wheel

- name: Build distribution 📦 (Windows)
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
if [ ${{ matrix.os }} != 'ubuntu-latest' ]; then
pip install setuptools wheel
fi
cd bindings/python && python setup.py build -p win32 bdist_wheel -p win32
- name: Build distribution 📦
shell: bash
run: |
if [ ${{ matrix.platform }} == 'x32' ] && [ ${{ matrix.os }} == 'windows-latest' ]; then
cd bindings/python && python setup.py build -p win32 bdist_wheel -p win32
elif [ ${{ matrix.platform }} == 'x32' ] && [ ${{ matrix.os }} == 'ubuntu-latest' ]; then
if [ ${{ matrix.platform }} == 'x32' ] && [ ${{ matrix.os }} == 'ubuntu-latest' ]; then
docker run --rm -v `pwd`/:/work dockcross/manylinux2014-x86 > ./dockcross
chmod +x ./dockcross
chmod +x bindings/python/build_wheel.sh
Expand Down Expand Up @@ -84,4 +87,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_pass }}
password: ${{ secrets.pypi_pass }}

0 comments on commit e87bb5e

Please sign in to comment.