Skip to content

Commit b939372

Browse files
juanjose.tenoriocorona10
authored andcommitted
refactor action into one file
1 parent c940c2d commit b939372

File tree

5 files changed

+51
-69
lines changed

5 files changed

+51
-69
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -178,23 +178,10 @@ jobs:
178178
if: github.event_name == 'pull_request' # $GITHUB_EVENT_NAME
179179
run: make check-c-globals
180180

181-
build_win32:
182-
name: 'Windows (x86)'
181+
build_win:
183182
needs: check_source
184183
if: needs.check_source.outputs.run_tests == 'true'
185-
uses: ./.github/workflows/reusable-build-win-32.yml
186-
187-
build_win_amd64:
188-
name: 'Windows (x64)'
189-
needs: check_source
190-
if: needs.check_source.outputs.run_tests == 'true'
191-
uses: ./.github/workflows/reusable-build-win-amd64.yml
192-
193-
build_win_arm64:
194-
name: 'Windows (arm64)'
195-
needs: check_source
196-
if: needs.check_source.outputs.run_tests == 'true'
197-
uses: ./.github/workflows/reusable-build-win-arm64.yml
184+
uses: ./.github/workflows/reusable-build-win.yml
198185

199186
build_macos:
200187
name: 'macOS'
@@ -544,9 +531,7 @@ jobs:
544531
- check_source # Transitive dependency, needed to access `run_tests` value
545532
- check-docs
546533
- check_generated_files
547-
- build_win32
548-
- build_win_amd64
549-
- build_win_arm64
534+
- build_win
550535
- build_macos
551536
- build_ubuntu
552537
- build_ubuntu_ssltests

.github/workflows/reusable-build-win-32.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/reusable-build-win-amd64.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/reusable-build-win-arm64.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
on:
2+
workflow_call:
3+
4+
jobs:
5+
build_win_32:
6+
name: 'Windows (x86)'
7+
runs-on: windows-latest
8+
timeout-minutes: 60
9+
env:
10+
IncludeUwp: 'true'
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Build CPython
14+
run: .\PCbuild\build.bat -e -d -p Win32
15+
- name: Display build info
16+
run: .\python.bat -m test.pythoninfo
17+
- name: Tests
18+
run: .\PCbuild\rt.bat -p Win32 -d -q --fast-ci
19+
20+
build_win_amd64:
21+
name: 'Windows (x64)'
22+
runs-on: windows-latest
23+
timeout-minutes: 60
24+
env:
25+
IncludeUwp: 'true'
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Register MSVC problem matcher
29+
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
30+
- name: Build CPython
31+
run: .\PCbuild\build.bat -e -d -p x64
32+
- name: Display build info
33+
run: .\python.bat -m test.pythoninfo
34+
- name: Tests
35+
run: .\PCbuild\rt.bat -p x64 -d -q --fast-ci
36+
37+
build_win_arm64:
38+
name: 'Windows (arm64)'
39+
runs-on: windows-latest
40+
timeout-minutes: 60
41+
env:
42+
IncludeUwp: 'true'
43+
steps:
44+
- uses: actions/checkout@v4
45+
- name: Register MSVC problem matcher
46+
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
47+
- name: Build CPython
48+
run: .\PCbuild\build.bat -e -d -p arm64

0 commit comments

Comments
 (0)