19
19
runs-on : ${{ matrix.os }}
20
20
strategy :
21
21
matrix :
22
- os : [macos-12 , windows-2019, ubuntu-latest]
22
+ os : [macos-14 , windows-2019, ubuntu-latest]
23
23
name : Build CPython ${{ matrix.python-version }}-${{ matrix.os }}
24
24
steps :
25
25
- uses : actions/checkout@v4
28
28
CIBW_ARCHS_MACOS : x86_64 universal2
29
29
CIBW_TEST_SKIP : ' *universal2:arm64'
30
30
CIBW_BUILD : " cp38-macosx_universal2 cp38-win* cp38-manylinux_{x86_64,i686}"
31
- - uses : actions/upload-artifact@v3
31
+ - uses : actions/upload-artifact@v4
32
32
with :
33
- name : python_bsonjs-3.8- ${{ matrix.os }}-wheel
33
+ name : ${{ matrix.os }}-wheel
34
34
path : ./wheelhouse/*.whl
35
35
if-no-files-found : error
36
36
test_non_linux_wheels :
48
48
python-version : ${{ matrix.python-version }}
49
49
allow-prereleases : true
50
50
- name : Download a previously created wheel
51
- uses : actions/download-artifact@v2
51
+ uses : actions/download-artifact@v4
52
52
with :
53
- name : python_bsonjs-3.8- ${{ matrix.os }}-wheel
53
+ name : ${{ matrix.os }}-wheel
54
54
- name : Test wheel
55
55
shell : bash
56
56
run : |
71
71
name : Test CPython ${{ matrix.python-version }}-${{ matrix.container }}
72
72
steps :
73
73
- name : Download a previously created wheel
74
- uses : actions/download-artifact@v2
74
+ uses : actions/download-artifact@v4
75
75
with :
76
- name : python_bsonjs-3.8- ${{ matrix.os }}-wheel
76
+ name : ${{ matrix.os }}-wheel
77
77
- name : Test wheel
78
78
run : |
79
79
docker run --rm --volume `pwd`:/python quay.io/pypa/${{ matrix.container }} /bin/bash -c "/opt/python/${{ matrix.python-version }}/bin/python -m pip install -U pip && /opt/python/${{ matrix.python-version }}/bin/python -m pip install --find-links=/python/ --no-index python_bsonjs && /opt/python/${{ matrix.python-version }}/bin/python -m pip list | grep python-bsonjs && /opt/python/${{ matrix.python-version }}/bin/python -c 'from bsonjs import dumps'"
90
90
run : |
91
91
python -m pip install build
92
92
python -m build --sdist
93
- - uses : actions/upload-artifact@v3
93
+ - uses : actions/upload-artifact@v4
94
94
with :
95
95
name : " sdist"
96
96
path : dist/*.tar.gz
@@ -100,15 +100,15 @@ jobs:
100
100
name : Download Wheels
101
101
steps :
102
102
- name : Download all workflow run artifacts
103
- uses : actions/download-artifact@v3
103
+ uses : actions/download-artifact@v4
104
104
- name : Flatten directory
105
105
working-directory : .
106
106
run : |
107
107
find . -mindepth 2 -type f -exec mv {} . \;
108
108
find . -type d -empty -delete
109
- - uses : actions/upload-artifact@v3
109
+ - uses : actions/upload-artifact@v4
110
110
with :
111
- name : all-dist-${{ github.head_ref || github.ref_name }}
111
+ name : all-dist-${{ github.run_id }}
112
112
path : " ./*"
113
113
publish :
114
114
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi
@@ -120,9 +120,9 @@ jobs:
120
120
id-token : write
121
121
steps :
122
122
- name : Download all the dists
123
- uses : actions/download-artifact@v3
123
+ uses : actions/download-artifact@v4
124
124
with :
125
- name : all-dist-${{ github.head_ref || github.ref_name }}
125
+ name : all-dist-- ${{ github.run_id }}
126
126
path : dist/
127
127
- name : Publish distribution 📦 to PyPI
128
128
uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments