Skip to content

Commit eac4dae

Browse files
committed
windows/appveyor: Build both standard and dev variants.
This makes sure changes from previous related commits actually work.
1 parent 6cbfdb6 commit eac4dae

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

ports/windows/.appveyor.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ skip_tags: true
55
environment:
66
# Python version used
77
MICROPY_CPYTHON3: c:/python38/python.exe
8+
# The variants.
9+
matrix:
10+
- PyVariant: dev
11+
- PyVariant: standard
812

913
init:
1014
# Set build version number to commit to be travis-like
@@ -18,6 +22,12 @@ platform:
1822
- x86
1923
- x64
2024

25+
matrix:
26+
# One debug build is enough.
27+
exclude:
28+
- configuration: Debug
29+
PyVariant: dev
30+
2131
before_build:
2232
- ps: |
2333
@"
@@ -36,6 +46,7 @@ build:
3646

3747
test_script:
3848
- ps: |
49+
$env:MICROPY_MICROPYTHON=(msbuild ports\windows\micropython.vcxproj /nologo /v:m /t:ShowTargetPath).Trim()
3950
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'tests')
4051
& $env:MICROPY_CPYTHON3 run-tests.py
4152
if ($LASTEXITCODE -ne 0) {
@@ -58,7 +69,7 @@ after_test:
5869
$env:MSYSTEM = if ($platform -eq 'x86') {'MINGW32'} else {'MINGW64'}
5970
$env:CHERE_INVOKING = 'enabled_from_arguments'
6071
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'ports/windows')
61-
C:\msys64\usr\bin\bash.exe -l -c "make -B -j4 V=1"
72+
C:\msys64\usr\bin\bash.exe -l -c "make -B -j4 V=1 VARIANT=$($env:PyVariant)"
6273
if ($LASTEXITCODE -ne 0) {
6374
throw "$env:MSYSTEM build exited with code $LASTEXITCODE"
6475
}

ports/windows/msvc/common.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@
4242
<QstrDependencies Include="$(PyVariantDir)mpconfigvariant.h"/>
4343
</ItemGroup>
4444

45+
<!-- Helper for getting resulting executable path since it depends on other properties. -->
46+
<Target Name="ShowTargetPath">
47+
<Message Text="$(TargetPath)" Importance="high"/>
48+
</Target>
49+
4550
<!-- Copy PyOutputFiles to their target destination.
4651
To force this when switching between platforms/configurations which are already up-to-date (and as such,
4752
for which a build wouldn't even start because all outputs are effectively newer than the inputs)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy