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', '3.13' ]
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,19 @@ 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
86
89
87
90
build_wheels_win_64 :
88
91
name : Build Windows x64 wheels for Python ${{ matrix.python }}
89
92
needs : [build_stubs]
90
93
runs-on : ${{ matrix.os }}
91
94
strategy :
92
95
matrix :
93
- python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
96
+ python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
94
97
include :
95
98
- os : [windows-latest]
96
99
arch : ["AMD64"]
@@ -102,10 +105,12 @@ jobs:
102
105
103
106
- name : Restore Cached Stubs
104
107
id : cache-stubs
105
- uses : actions/cache@v3
108
+ uses : actions/cache@v4
106
109
with :
107
110
path : .\delphivcl\__init__.pyi
108
- key : ${{ runner.os }}-stubs
111
+ key : ${{ runner.os }}-cache-${{ hashFiles('.\delphivcl\*') }}
112
+ restore-keys : |
113
+ ${{ runner.os }}-cache-
109
114
110
115
- name : Set up Python ${{ matrix.python }}
111
116
uses : actions/setup-python@v3
@@ -114,16 +119,17 @@ jobs:
114
119
architecture : " x64"
115
120
116
121
- name : Build bdist wheel
117
- run : |
122
+ run : |
118
123
python -m pip install setuptools --upgrade
119
124
python -m pip install wheel --upgrade
120
125
python setup.py bdist_wheel --plat-name=win_amd64
121
126
122
127
- name : Save wheel
123
- uses : actions/upload-artifact@v2
128
+ uses : actions/upload-artifact@v4
124
129
with :
130
+ name : artifacts-win64-${{ matrix.python }}
125
131
path : dist/*.whl
126
- if-no-files-found : error
132
+ if-no-files-found : error
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