Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 88d4277

Browse files
committedNov 11, 2024·
Workflow update
1 parent 4225930 commit 88d4277

File tree

2 files changed

+30
-20
lines changed

2 files changed

+30
-20
lines changed
 

‎.github/workflows/pypi.yml

+29-19
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-win32-${{ 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,10 +106,12 @@ 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
108-
key: ${{ runner.os }}-stubs
112+
key: ${{ runner.os }}-cache-${{ hashFiles('.\delphivcl\*') }}
113+
restore-keys: |
114+
${{ runner.os }}-cache-
109115
110116
- name: Set up Python ${{ matrix.python }}
111117
uses: actions/setup-python@v3
@@ -114,16 +120,18 @@ jobs:
114120
architecture: "x64"
115121

116122
- name: Build bdist wheel
117-
run: |
123+
run: |
118124
python -m pip install setuptools --upgrade
119125
python -m pip install wheel --upgrade
120126
python setup.py bdist_wheel --plat-name=win_amd64
121127
122128
- name: Save wheel
123-
uses: actions/upload-artifact@v2
129+
uses: actions/upload-artifact@v4
124130
with:
131+
name: artifacts-win64-${{ matrix.python }}
125132
path: dist/*.whl
126-
if-no-files-found: error
133+
if-no-files-found: error
134+
overwrite: true
127135

128136
upload_pypi_test:
129137
name: Upload to PyPI test
@@ -136,10 +144,11 @@ jobs:
136144
id-token: write
137145
if: github.ref == 'refs/heads/main'
138146
steps:
139-
- uses: actions/download-artifact@v2
147+
- uses: actions/download-artifact@v4
140148
with:
141-
name: artifact
149+
pattern: artifacts-*
142150
path: dist
151+
merge-multiple: true
143152

144153
- name: Publish package to TestPyPI
145154
uses: pypa/gh-action-pypi-publish@release/v1
@@ -157,10 +166,11 @@ jobs:
157166
id-token: write
158167
if: startsWith(github.ref, 'refs/tags/v')
159168
steps:
160-
- uses: actions/download-artifact@v2
169+
- uses: actions/download-artifact@v4
161170
with:
162-
name: artifact
171+
pattern: artifacts-*
163172
path: dist
173+
merge-multiple: true
164174

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

‎.github/workflows/tests.yml

+1-1
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

0 commit comments

Comments
 (0)
Please sign in to comment.