19
19
20
20
steps :
21
21
- name : Check out repository
22
- uses : actions/checkout@v3
22
+ uses : actions/checkout@v4
23
23
24
24
- name : Build and Install VCL
25
25
run : |
@@ -38,33 +38,35 @@ jobs:
38
38
39
39
- name : Cache Stubs
40
40
id : cache-stubs
41
- uses : actions/cache@v3
41
+ uses : actions/cache@v4
42
42
with :
43
43
path : .\delphivcl\__init__.pyi
44
- key : ${{ runner.os }}-stubs
44
+ key : ${{ runner.os }}-cache-${{ hashFiles('.\delphivcl\*') }}
45
45
46
46
build_wheels_win_32 :
47
47
name : Build Windows x86 wheels for Python ${{ matrix.python }}
48
48
needs : [build_stubs]
49
49
runs-on : ${{ matrix.os }}
50
50
strategy :
51
51
matrix :
52
- python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
52
+ python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
53
53
include :
54
54
- os : [windows-latest]
55
55
arch : ["x86"]
56
56
steps :
57
57
- name : Check out repository
58
- uses : actions/checkout@v3
58
+ uses : actions/checkout@v4
59
59
with :
60
60
fetch-depth : 0
61
61
62
62
- name : Restore Cached Stubs
63
63
id : cache-stubs
64
- uses : actions/cache@v3
64
+ uses : actions/cache@v4
65
65
with :
66
66
path : .\delphivcl\__init__.pyi
67
- key : ${{ runner.os }}-stubs
67
+ key : ${{ runner.os }}-cache-${{ hashFiles('.\delphivcl\*') }}
68
+ restore-keys : |
69
+ ${{ runner.os }}-cache-
68
70
69
71
- name : Set up Python ${{ matrix.python }}
70
72
uses : actions/setup-python@v3
@@ -79,18 +81,20 @@ jobs:
79
81
python setup.py bdist_wheel --plat-name=win32
80
82
81
83
- name : Save wheel
82
- uses : actions/upload-artifact@v2
84
+ uses : actions/upload-artifact@v4
83
85
with :
86
+ name : artifacts-win32-${{ matrix.python }}
84
87
path : dist/*.whl
85
- if-no-files-found : error
88
+ if-no-files-found : error
89
+ overwrite : true
86
90
87
91
build_wheels_win_64 :
88
92
name : Build Windows x64 wheels for Python ${{ matrix.python }}
89
93
needs : [build_stubs]
90
94
runs-on : ${{ matrix.os }}
91
95
strategy :
92
96
matrix :
93
- python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
97
+ python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
94
98
include :
95
99
- os : [windows-latest]
96
100
arch : ["AMD64"]
@@ -102,10 +106,12 @@ jobs:
102
106
103
107
- name : Restore Cached Stubs
104
108
id : cache-stubs
105
- uses : actions/cache@v3
109
+ uses : actions/cache@v4
106
110
with :
107
111
path : .\delphivcl\__init__.pyi
108
- key : ${{ runner.os }}-stubs
112
+ key : ${{ runner.os }}-cache-${{ hashFiles('.\delphivcl\*') }}
113
+ restore-keys : |
114
+ ${{ runner.os }}-cache-
109
115
110
116
- name : Set up Python ${{ matrix.python }}
111
117
uses : actions/setup-python@v3
@@ -114,16 +120,18 @@ jobs:
114
120
architecture : " x64"
115
121
116
122
- name : Build bdist wheel
117
- run : |
123
+ run : |
118
124
python -m pip install setuptools --upgrade
119
125
python -m pip install wheel --upgrade
120
126
python setup.py bdist_wheel --plat-name=win_amd64
121
127
122
128
- name : Save wheel
123
- uses : actions/upload-artifact@v2
129
+ uses : actions/upload-artifact@v4
124
130
with :
131
+ name : artifacts-win64-${{ matrix.python }}
125
132
path : dist/*.whl
126
- if-no-files-found : error
133
+ if-no-files-found : error
134
+ overwrite : true
127
135
128
136
upload_pypi_test :
129
137
name : Upload to PyPI test
@@ -136,10 +144,11 @@ jobs:
136
144
id-token : write
137
145
if : github.ref == 'refs/heads/main'
138
146
steps :
139
- - uses : actions/download-artifact@v2
147
+ - uses : actions/download-artifact@v4
140
148
with :
141
- name : artifact
149
+ pattern : artifacts-*
142
150
path : dist
151
+ merge-multiple : true
143
152
144
153
- name : Publish package to TestPyPI
145
154
uses : pypa/gh-action-pypi-publish@release/v1
@@ -157,10 +166,11 @@ jobs:
157
166
id-token : write
158
167
if : startsWith(github.ref, 'refs/tags/v')
159
168
steps :
160
- - uses : actions/download-artifact@v2
169
+ - uses : actions/download-artifact@v4
161
170
with :
162
- name : artifact
171
+ pattern : artifacts-*
163
172
path : dist
173
+ merge-multiple : true
164
174
165
175
- name : Publish package to PyPI
166
176
uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments