77 workflow_dispatch :
88
99jobs :
10- publish_pypi_linux_macos_x86 :
11- name : Build wheels on ${{ matrix.os }}
12- runs-on : ${{ matrix.os }}
13- strategy :
14- matrix :
15- os : [ubuntu-20.04, macos-12]
10+ publish_pypi_linux_x86 :
11+ name : publish linux_x86 wheels to pypi
12+ runs-on : ubuntu-latest
1613
1714 environment : release
1815 permissions :
@@ -36,17 +33,32 @@ jobs:
3633 with :
3734 packages-dir : pyscfadlib/wheelhouse
3835
36+ build_wheel_macos_x86 :
37+ name : Build macos_x86 wheels
38+ runs-on : macos-12
3939
40- publish_pypi_macos_arm64 :
41- name : Build wheels on ${{ matrix.os }}
42- runs-on : ${{ matrix.os }}
43- strategy :
44- matrix :
45- os : [macos-14]
40+ steps :
41+ - uses : actions/checkout@v4
4642
47- environment : release
48- permissions :
49- id-token : write
43+ - name : Build wheels
44+ uses : pypa/cibuildwheel@v2.16.5
45+ env :
46+ CMAKE_CONFIGURE_ARGS : " -DWITH_F12=OFF"
47+ with :
48+ package-dir : pyscfadlib
49+ output-dir : pyscfadlib/wheelhouse
50+ config-file : " {package}/pyproject.toml"
51+
52+ - name : Upload wheels
53+ uses : actions/upload-artifact@v4
54+ with :
55+ name : cibw_wheels_macos_x86
56+ path : pyscfadlib/wheelhouse/*.whl
57+ overwrite : true
58+
59+ build_wheel_macos_arm64 :
60+ name : Build macos_arm64 wheels
61+ runs-on : macos-14
5062
5163 steps :
5264 - uses : actions/checkout@v4
6173 output-dir : pyscfadlib/wheelhouse
6274 config-file : " {package}/pyproject.toml"
6375
76+ - name : Upload wheels
77+ uses : actions/upload-artifact@v4
78+ with :
79+ name : cibw_wheels_macos_arm64
80+ path : pyscfadlib/wheelhouse/*.whl
81+ overwrite : true
82+
83+ publish_pypi_macos_x86 :
84+ name : publish macos_x86 wheels to pypi
85+ needs : build_wheel_macos_x86
86+ runs-on : ubuntu-latest
87+
88+ environment : release
89+ permissions :
90+ id-token : write
91+
92+ steps :
93+ - name : Download wheels
94+ uses : actions/download-artifact@v4
95+ with :
96+ name : cibw_wheels_macos_x86
97+
6498 - name : Publish to PyPI
6599 uses : pypa/gh-action-pypi-publish@release/v1
66100 with :
67- packages-dir : pyscfadlib/wheelhouse
101+ packages-dir : $GITHUB_WORKSPACE
102+
103+ publish_pypi_macos_arm64 :
104+ name : publish macos_arm64 wheels to pypi
105+ needs : build_wheel_macos_arm64
106+ runs-on : ubuntu-latest
107+
108+ environment : release
109+ permissions :
110+ id-token : write
111+
112+ steps :
113+ - name : Download wheels
114+ uses : actions/download-artifact@v4
115+ with :
116+ name : cibw_wheels_macos_arm64
117+
118+ - name : Publish to PyPI
119+ uses : pypa/gh-action-pypi-publish@release/v1
120+ with :
121+ packages-dir : $GITHUB_WORKSPACE
122+
0 commit comments