File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 4
4
schedule :
5
5
- cron : ' 13 4 * * *'
6
6
jobs :
7
+ pythonbuild :
8
+ runs-on : ' windows-2019'
9
+ steps :
10
+ - uses : actions/checkout@v2
11
+
12
+ - name : Install Rust
13
+ uses : actions-rs/toolchain@v1
14
+ with :
15
+ toolchain : stable
16
+ default : true
17
+ profile : minimal
18
+
19
+ - uses : actions/cache@v2
20
+ with :
21
+ path : |
22
+ C:/Rust/.cargo/registry
23
+ C:/Rust/.cargo/git
24
+ target
25
+ key : ${{ runner.os }}-pythonbuild-${{ hashFiles('Cargo.lock') }}
26
+
27
+ - name : Build
28
+ run : |
29
+ cargo build --release
30
+
31
+ - name : Upload executable
32
+ uses : actions/upload-artifact@v2
33
+ with :
34
+ name : pythonbuild
35
+ path : target/release/pythonbuild.exe
36
+
7
37
build :
8
38
strategy :
9
39
fail-fast : false
17
47
profile :
18
48
- ' static-noopt'
19
49
- ' shared-pgo'
50
+ needs : pythonbuild
20
51
runs-on : ' windows-2019'
21
52
steps :
22
53
- uses : actions/checkout@v2
34
65
with :
35
66
python-version : ' 3.8'
36
67
68
+ - name : Download pythonbuild Executable
69
+ uses : actions/download-artifact@v2
70
+ with :
71
+ name : pythonbuild
72
+
37
73
# We need to do this before we activate the VC++ environment or else binary packages
38
74
# don't get compiled properly.
39
75
- name : Bootstrap Python environment
46
82
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\${{ matrix.vcvars }}"
47
83
py.exe build-windows.py --python ${{ matrix.py }} --sh c:\tools\cygwin\bin\sh.exe --profile ${{ matrix.profile }}
48
84
85
+ - name : Validate Distribution
86
+ run : |
87
+ $Dists = Resolve-Path -Path "dist/*.tar.zst" -Relative
88
+ .\pythonbuild.exe validate-distribution $Dists
89
+
49
90
- name : Upload Distributions
50
91
uses : actions/upload-artifact@v2
51
92
with :
You can’t perform that action at this time.
0 commit comments