Skip to content

Commit 5c5fc9d

Browse files
authored
Generalize build_msi GitHub action (GH-94201)
1 parent bc7f6fc commit 5c5fc9d

File tree

1 file changed

+8
-29
lines changed

1 file changed

+8
-29
lines changed

.github/workflows/build_msi.yml

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,48 +5,27 @@ on:
55
push:
66
branches:
77
- 'main'
8-
- '3.11'
9-
- '3.10'
10-
- '3.9'
11-
- '3.8'
12-
- '3.7'
8+
- '3.*'
139
paths:
1410
- 'Tools/msi/**'
1511
pull_request:
1612
branches:
1713
- 'main'
18-
- '3.11'
19-
- '3.10'
20-
- '3.9'
21-
- '3.8'
22-
- '3.7'
14+
- '3.*'
2315
paths:
2416
- 'Tools/msi/**'
2517

2618
permissions:
2719
contents: read
2820

2921
jobs:
30-
build_win32:
31-
name: 'Windows (x86) Installer'
22+
build:
23+
name: Windows Installer
3224
runs-on: windows-latest
25+
strategy:
26+
matrix:
27+
type: [x86, x64, arm64]
3328
steps:
3429
- uses: actions/checkout@v3
3530
- name: Build CPython installer
36-
run: .\Tools\msi\build.bat -x86
37-
38-
build_win_amd64:
39-
name: 'Windows (x64) Installer'
40-
runs-on: windows-latest
41-
steps:
42-
- uses: actions/checkout@v3
43-
- name: Build CPython installer
44-
run: .\Tools\msi\build.bat -x64
45-
46-
build_win_arm64:
47-
name: 'Windows (ARM64) Installer'
48-
runs-on: windows-latest
49-
steps:
50-
- uses: actions/checkout@v3
51-
- name: Build CPython installer
52-
run: .\Tools\msi\build.bat -arm64
31+
run: .\Tools\msi\build.bat -${{ matrix.type }}

0 commit comments

Comments
 (0)