Skip to content

Commit

Permalink
FIXME: testing windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
javiber committed Apr 3, 2024
1 parent f5ba9db commit 15aae51
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 1 deletion.
67 changes: 67 additions & 0 deletions .github/workflows/windows_wheels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: windows_build

on:
[push]

jobs:
build-windows:
runs-on: windows-latest
strategy:
matrix:
python-version: [3.9] #["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v3 # v4 doesn't work on the container

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

- name: Build package
run: tools/build.bat

- name: Save package for following jobs
uses: actions/upload-artifact@v3
with:
name: dist-windows-${{ matrix.python-version }}
path: dist


# test-install:
# needs: [build-windows]
# strategy:
# matrix:
# python-version: [3.9] #["3.8", "3.9", "3.10", "3.11"]
# platform:
# [
# { runner: ubuntu-latest, artifact: ubuntu },
# { runner: macos-12-large, artifact: macos12-intel },
# { runner: macos-13-large, artifact: macos13-intel },
# { runner: macos-14-large, artifact: macos14-intel },
# ]
# runs-on: ${{ matrix.platform.runner }}
# env:
# # Workaround for macos pip compatibility issue
# # See https://github.com/actions/setup-python/issues/469
# SYSTEM_VERSION_COMPAT: 0
# steps:
# - name: Checkout
# uses: actions/checkout@v3

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

# - name: Download build
# uses: actions/download-artifact@v3
# with:
# name: dist-${{ matrix.platform.artifact }}-${{ matrix.python-version }}
# path: dist

# - name: Install from wheel
# run: pip install dist/*.whl

# - name: Test installation
# run: python tools/check_install.py
5 changes: 4 additions & 1 deletion tools/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ exit /b %errorlevel%
:: Runs the full build+test+pip for a specific version of python.
:End2End
set PYTHON_VERSION=%~1
set PYTHON_DIR=C:/Python%PYTHON_VERSION%
:: FIXME
:: GA python path: C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe
:: set PYTHON_DIR=C:/Python%PYTHON_VERSION%
set PYTHON_DIR=C:/hostedtoolcache/windows/Python/3.9.13/x64
set PYTHON=%PYTHON_DIR%/python.exe
set PYTHON3_BIN_PATH=%PYTHON%
set PYTHON3_LIB_PATH=%PYTHON_DIR%/Lib
Expand Down

0 comments on commit 15aae51

Please sign in to comment.