Skip to content

Commit

Permalink
gh: Build on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Synss committed Mar 12, 2021
1 parent 1eef391 commit 48c2045
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-10.15]
os: [ubuntu-20.04, macos-10.15, windows-latest]
version: [2.16.9]

steps:
Expand All @@ -33,7 +33,16 @@ jobs:
./scripts/download-mbedtls.sh $VERSION ~/.local/src
&& ./scripts/install-mbedtls.sh ~/.local/src
&& cp /usr/local/lib/libmbed*dylib .
#CIBW_BEFORE_ALL_WINDOWS:
CIBW_ENVIRONMENT_WINDOWS: >
VERSION=${{ matrix.version }}
LIB=$HOMEDRIVE$HOMEPATH\\mbedtls\\visualc\\VS2010\\x64\\Release
INCLUDE=$HOMEDRIVE$HOMEPATH\\mbedtls\\include
CIBW_BEFORE_ALL_WINDOWS: >
powershell -Command Get-Host
&& powershell %CD%\scripts\download-mbedtls.ps1 %VERSION% %HOMEDRIVE%%HOMEPATH%\mbedtls
&& powershell %CD%\scripts\install-mbedtls.ps1 -ConfigurationType StaticLibrary %HOMEDRIVE%%HOMEPATH%\mbedtls
&& powershell %CD%\scripts\install-mbedtls.ps1 -ConfigurationType DynamicLibrary %HOMEDRIVE%%HOMEPATH%\mbedtls
&& dir %LIB%
CIBW_TEST_REQUIRES: -rrequirements/tests.txt
CIBW_TEST_COMMAND: pytest {project}/tests

Expand Down

0 comments on commit 48c2045

Please sign in to comment.