Skip to content

Commit

Permalink
Add github actions with windows x86 and x64 architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
Toporin committed Jun 26, 2023
1 parent 048bfc5 commit ba85a8b
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/windows_all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Windows Build

on: [push, pull_request]

jobs:
build:

runs-on: windows-latest

strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
windows-arch: ['x86', 'x64']

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }} ${{ matrix.windows-arch }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.windows-arch }}

- name: Install build tools
run: |
python --version
python -c "import struct; print(struct.calcsize('P') * 8)"
python -m pip install --upgrade pip
pip install -r dev-requirements.txt
choco install swig --version 2.0.12 --allow-empty-checksums --yes --limit-output
swig -version
- name: Build
run: |
python setup.py sdist
python setup.py bdist
python setup.py bdist_wheel
python setup.py install
- name: Tests
run: python setup.py test

- uses: actions/upload-artifact@v3
with:
path: dist

0 comments on commit ba85a8b

Please sign in to comment.