File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 88
99jobs :
1010 build :
11- name : Build for Python ${{ matrix.python-version }}
12- runs-on : ubuntu-latest
11+ name : Build for Python ${{ matrix.python-version }} on ${{ matrix.os }}
12+ runs-on : ${{ matrix.os }}
1313 if : startsWith(github.ref, 'refs/tags/v')
1414 strategy :
1515 matrix :
16+ os : [ubuntu-latest, windows-latest, macos-latest]
1617 python-version : ["3.12", "3.13"]
1718 steps :
1819 - uses : actions/checkout@v4
@@ -37,16 +38,17 @@ jobs:
3738 poetry build
3839
3940 - name : Copy artifacts
41+ shell : bash
4042 run : |
41- mkdir -p dist-py${{ matrix.python-version }}
42- cp dist/*.whl dist-py${{ matrix.python-version }}/
43- cp dist/*.tar.gz dist-py${{ matrix.python-version }}/
43+ mkdir -p dist-py${{ matrix.python-version }}-${{ matrix.os }}
44+ cp dist/*.whl dist-py${{ matrix.python-version }}-${{ matrix.os }}/ || true
45+ cp dist/*.tar.gz dist-py${{ matrix.python-version }}-${{ matrix.os }}/ || true
4446
45- - name : Upload Python ${{ matrix.python-version }} artifacts
47+ - name : Upload Python ${{ matrix.python-version }} ${{ matrix.os }} artifacts
4648 uses : actions/upload-artifact@v4
4749 with :
48- name : python-packages-${{ matrix.python-version }}
49- path : dist-py${{ matrix.python-version }}/
50+ name : python-packages-${{ matrix.python-version }}-${{ matrix.os }}
51+ path : dist-py${{ matrix.python-version }}-${{ matrix.os }} /
5052 retention-days : 7
5153
5254 release :
You can’t perform that action at this time.
0 commit comments