Skip to content

Commit 0e5f74a

Browse files
committed
Workflow update
1 parent 8bdd0a7 commit 0e5f74a

File tree

4 files changed

+27
-19
lines changed

4 files changed

+27
-19
lines changed

.github/workflows/pypi.yml

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- name: Check out repository
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323

2424
- name: Build and Install VCL
2525
run: |
@@ -38,33 +38,35 @@ jobs:
3838
3939
- name: Cache Stubs
4040
id: cache-stubs
41-
uses: actions/cache@v3
41+
uses: actions/cache@v4
4242
with:
4343
path: .\delphivcl\__init__.pyi
44-
key: ${{ runner.os }}-stubs
44+
key: ${{ runner.os }}-cache-${{ hashFiles('.\delphivcl\*') }}
4545

4646
build_wheels_win_32:
4747
name: Build Windows x86 wheels for Python ${{ matrix.python }}
4848
needs: [build_stubs]
4949
runs-on: ${{ matrix.os }}
5050
strategy:
5151
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']
5353
include:
5454
- os: [windows-latest]
5555
arch: ["x86"]
5656
steps:
5757
- name: Check out repository
58-
uses: actions/checkout@v3
58+
uses: actions/checkout@v4
5959
with:
6060
fetch-depth: 0
6161

6262
- name: Restore Cached Stubs
6363
id: cache-stubs
64-
uses: actions/cache@v3
64+
uses: actions/cache@v4
6565
with:
6666
path: .\delphivcl\__init__.pyi
67-
key: ${{ runner.os }}-stubs
67+
key: ${{ runner.os }}-cache-${{ hashFiles('.\delphivcl\*') }}
68+
restore-keys: |
69+
${{ runner.os }}-cache-
6870
6971
- name: Set up Python ${{ matrix.python }}
7072
uses: actions/setup-python@v3
@@ -79,18 +81,20 @@ jobs:
7981
python setup.py bdist_wheel --plat-name=win32
8082
8183
- name: Save wheel
82-
uses: actions/upload-artifact@v2
84+
uses: actions/upload-artifact@v4
8385
with:
86+
name: artifacts-${{ runner.os }}-${{ matrix.python }}
8487
path: dist/*.whl
85-
if-no-files-found: error
88+
if-no-files-found: error
89+
overwrite: true
8690

8791
build_wheels_win_64:
8892
name: Build Windows x64 wheels for Python ${{ matrix.python }}
8993
needs: [build_stubs]
9094
runs-on: ${{ matrix.os }}
9195
strategy:
9296
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']
9498
include:
9599
- os: [windows-latest]
96100
arch: ["AMD64"]
@@ -102,7 +106,7 @@ jobs:
102106

103107
- name: Restore Cached Stubs
104108
id: cache-stubs
105-
uses: actions/cache@v3
109+
uses: actions/cache@v4
106110
with:
107111
path: .\delphivcl\__init__.pyi
108112
key: ${{ runner.os }}-stubs
@@ -114,16 +118,18 @@ jobs:
114118
architecture: "x64"
115119

116120
- name: Build bdist wheel
117-
run: |
121+
run: |
118122
python -m pip install setuptools --upgrade
119123
python -m pip install wheel --upgrade
120124
python setup.py bdist_wheel --plat-name=win_amd64
121125
122126
- name: Save wheel
123-
uses: actions/upload-artifact@v2
127+
uses: actions/upload-artifact@v4
124128
with:
129+
name: artifacts-${{ runner.os }}-${{ matrix.python }}
125130
path: dist/*.whl
126-
if-no-files-found: error
131+
if-no-files-found: error
132+
overwrite: true
127133

128134
upload_pypi_test:
129135
name: Upload to PyPI test
@@ -136,10 +142,11 @@ jobs:
136142
id-token: write
137143
if: github.ref == 'refs/heads/main'
138144
steps:
139-
- uses: actions/download-artifact@v2
145+
- uses: actions/download-artifact@v4
140146
with:
141-
name: artifact
147+
pattern: artifacts-*
142148
path: dist
149+
merge-multiple: true
143150

144151
- name: Publish package to TestPyPI
145152
uses: pypa/gh-action-pypi-publish@release/v1
@@ -157,10 +164,11 @@ jobs:
157164
id-token: write
158165
if: startsWith(github.ref, 'refs/tags/v')
159166
steps:
160-
- uses: actions/download-artifact@v2
167+
- uses: actions/download-artifact@v4
161168
with:
162-
name: artifact
169+
pattern: artifacts-*
163170
path: dist
171+
merge-multiple: true
164172

165173
- name: Publish package to PyPI
166174
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
config:
1818
- { os: windows-latest, arch: AMD64, python-arch: x64, name: windows-latest-x64 }
1919
- { os: windows-latest, arch: x86, python-arch: x86, name: windows-latest-x86 }
20-
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
20+
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
2121
steps:
2222
- name: Check out repository
2323
uses: actions/checkout@v3

lib/Win32/DelphiVCL.pyd

3 KB
Binary file not shown.

lib/Win64/DelphiVCL.pyd

123 KB
Binary file not shown.

0 commit comments

Comments
 (0)