Closed swt2c closed 1 year ago
Hey @swt2c. We will take a look at it.
I was able to reproduce the issue. Looks like building tools can't find path to libs. I took msvc-dev-cmd task to initialize VS environment and the build completed successfully.
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
with:
repository: 'wxWidgets/Phoenix'
submodules: 'recursive'
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dep
run: |
curl.exe -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
python -m pip install -U setuptools wheel
python -m pip install -r requirements.txt
- uses: ilammy/msvc-dev-cmd@v1
- name: build
run: |
python build.py --jobs=4 build_wx
Thanks @al-cheb - I can't use ilammy/msvc-dev-cmd on Azure Pipelines, though, can I?
Hello @swt2c. Could you please try to use this steps for windows-2022:
- task: BatchScript@1
displayName: 'Set up vcvarsall '
inputs:
filename: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat'
arguments: x64
modifyEnvironment: true
- script: |
python build.py --jobs=4 build_wx
displayName: 'Python build'
@dmitry-shibanov, I can confirm that works.
Hello @swt2c. Thank you for your response. In this case I'm going to close the issue.
Description
Before image 20220710.1, it used to be possible to use nmake to build a VS project on windows-2022. However, this no longer works as nmake doesn't seem to be able to find system headers:
This worked fine with 20220626.1 (here's an example: https://alldunn.visualstudio.com/wxPython-CI/_build/results?buildId=965)
Platforms affected
Virtual environments affected
Image version and build link
20220710.1
https://alldunn.visualstudio.com/wxPython-CI/_build/results?buildId=972
Is it regression?
Yes 20220626.1 https://alldunn.visualstudio.com/wxPython-CI/_build/results?buildId=965
Expected behavior
Build successfully.
Actual behavior
Build fails.
Repro steps
Run CI job.