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-${{ runner.os }}-${{ 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,7 +106,7 @@ 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
112
key : ${{ runner.os }}-stubs
@@ -114,16 +118,18 @@ jobs:
114
118
architecture : " x64"
115
119
116
120
- name : Build bdist wheel
117
- run : |
121
+ run : |
118
122
python -m pip install setuptools --upgrade
119
123
python -m pip install wheel --upgrade
120
124
python setup.py bdist_wheel --plat-name=win_amd64
121
125
122
126
- name : Save wheel
123
- uses : actions/upload-artifact@v2
127
+ uses : actions/upload-artifact@v4
124
128
with :
129
+ name : artifacts-${{ runner.os }}-${{ matrix.python }}
125
130
path : dist/*.whl
126
- if-no-files-found : error
131
+ if-no-files-found : error
132
+ overwrite : true
127
133
128
134
upload_pypi_test :
129
135
name : Upload to PyPI test
@@ -136,10 +142,11 @@ jobs:
136
142
id-token : write
137
143
if : github.ref == 'refs/heads/main'
138
144
steps :
139
- - uses : actions/download-artifact@v2
145
+ - uses : actions/download-artifact@v4
140
146
with :
141
- name : artifact
147
+ pattern : artifacts-*
142
148
path : dist
149
+ merge-multiple : true
143
150
144
151
- name : Publish package to TestPyPI
145
152
uses : pypa/gh-action-pypi-publish@release/v1
@@ -157,10 +164,11 @@ jobs:
157
164
id-token : write
158
165
if : startsWith(github.ref, 'refs/tags/v')
159
166
steps :
160
- - uses : actions/download-artifact@v2
167
+ - uses : actions/download-artifact@v4
161
168
with :
162
- name : artifact
169
+ pattern : artifacts-*
163
170
path : dist
171
+ merge-multiple : true
164
172
165
173
- name : Publish package to PyPI
166
174
uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments