@@ -12,18 +12,17 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- name : Check out repo
15
- uses : actions/checkout@v3
16
-
15
+ uses : actions/checkout@v4
16
+ with :
17
+ fetch-depth : 0
17
18
- name : Install Python 3.11
18
- uses : actions/setup-python@v4
19
+ uses : actions/setup-python@v5
19
20
with :
20
21
python-version : 3.11
21
-
22
- - name : Build and check sdist
23
- run : |
24
- python setup.py sdist
25
- - name : Upload sdist
26
- uses : actions/upload-artifact@v3
22
+ - run : python -m pip install build
23
+ - name : Build sdist
24
+ run : python -m build --sdist
25
+ - uses : actions/upload-artifact@v3
27
26
with :
28
27
name : dist
29
28
path : dist/*.tar.gz
@@ -33,22 +32,24 @@ jobs:
33
32
runs-on : ${{ matrix.os }}
34
33
strategy :
35
34
matrix :
36
- os : [ubuntu-latest, macos-latest, windows-2019 ]
35
+ os : [ubuntu-latest, macos-latest, windows-latest ]
37
36
38
37
steps :
39
38
- name : Check out Google Benchmark
40
- uses : actions/checkout@v3
39
+ uses : actions/checkout@v4
40
+ with :
41
+ fetch-depth : 0
41
42
42
43
- name : Set up QEMU
43
44
if : runner.os == 'Linux'
44
- uses : docker/setup-qemu-action@v2
45
+ uses : docker/setup-qemu-action@v3
45
46
with :
46
47
platforms : all
47
48
48
49
- name : Build wheels on ${{ matrix.os }} using cibuildwheel
49
- uses : pypa/cibuildwheel@v2.14.1
50
+ uses : pypa/cibuildwheel@v2.16.2
50
51
env :
51
- CIBW_BUILD : ' cp38-* cp39-* cp310-* cp311-*'
52
+ CIBW_BUILD : ' cp38-* cp39-* cp310-* cp311-* cp312-* '
52
53
CIBW_SKIP : " *-musllinux_*"
53
54
CIBW_TEST_SKIP : " *-macosx_arm64"
54
55
CIBW_ARCHS_LINUX : x86_64 aarch64
@@ -61,19 +62,17 @@ jobs:
61
62
uses : actions/upload-artifact@v3
62
63
with :
63
64
name : dist
64
- path : ./ wheelhouse/*.whl
65
+ path : wheelhouse/*.whl
65
66
66
67
pypi_upload :
67
68
name : Publish google-benchmark wheels to PyPI
68
69
needs : [build_sdist, build_wheels]
69
70
runs-on : ubuntu-latest
71
+ permissions :
72
+ id-token : write
70
73
steps :
71
74
- uses : actions/download-artifact@v3
72
75
with :
73
76
name : dist
74
77
path : dist
75
-
76
- - uses : pypa/gh-action-pypi-publish@v1.6.4
77
- with :
78
- user : __token__
79
- password : ${{ secrets.PYPI_PASSWORD }}
78
+ - uses : pypa/gh-action-pypi-publish@v1.8.11
0 commit comments