-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (57 loc) · 2.17 KB
/
validate-win.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Validate install
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.win-version }}
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
win-version: ["windows-2019", "windows-2022", "windows-latest"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r .\requirements.txt
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Run script
run: |
python setup.py
- name: Output PATH
run: |
echo $PATH
- name: Run Minimal wxWidgets sample (VS 2019)
if: matrix.win-version == 'windows-2019'
run: |
$folderWildCard = "wxWidgets-*"
$folder = Get-ChildItem -Path "C:\" -Filter $folderWildCard -Directory | Select-Object -First 1
$folderPath = $folder.FullName # Get the full path of the selected folder
msbuild "$folderPath\samples\minimal\minimal_vc16.sln"
- name: Run Minimal wxWidgets sample (VS 2022)
if: matrix.win-version == 'windows-2022' || matrix.win-version == 'windows-latest'
run: |
$folderWildCard = "wxWidgets-*"
$folder = Get-ChildItem -Path "C:\" -Filter $folderWildCard -Directory | Select-Object -First 1
$folderPath = $folder.FullName # Get the full path of the selected folder
msbuild "$folderPath\samples\minimal\minimal_vc17.sln"
- name: Find built binary
run: |
$folderWildCard = "wxWidgets-*"
$folder = Get-ChildItem -Path "C:\" -Filter $folderWildCard -Directory | Select-Object -First 1
$binary = Get-ChildItem -Path "$folder\samples\minimal\vc_mswud\*.exe" | Select-Object -First 1
echo $binary