2323 with :
2424 name : dist
2525 path : dist
26- whl :
26+ whl_lt_3_10 :
2727 name : Build / ${{ matrix.os }} / Python ${{ matrix.major }}.${{ matrix.minor }}
2828 strategy :
2929 fail-fast : false
@@ -35,19 +35,44 @@ jobs:
3535 steps :
3636 - uses : actions/checkout@master
3737 - uses : actions/setup-python@master
38- # - uses: docker/setup-qemu-action@v1
39- # if: matrix.os == 'Ubuntu' && github.event_name == 'release' && github.event.action == 'published'
40- # with:
41- # platforms: all
4238 - run : echo '::add-matcher::.github/problem-matchers/gcc.json'
4339 if : matrix.os == 'macOS' || matrix.os == 'Ubuntu'
4440 - run : echo '::add-matcher::.github/problem-matchers/msvc.json'
4541 if : matrix.os == 'Windows'
46- - uses : pypa/cibuildwheel@v2.5.0
42+ - uses : pypa/cibuildwheel@v2.9.0
43+ with :
44+ output-dir : dist
45+ env :
46+ CIBW_ARCHS_MACOS : x86_64 universal2 arm64
47+ CIBW_BEFORE_BUILD : pip install -r {project}/requirements-backward.txt
48+ CIBW_BUILD : cp${{ matrix.major }}${{ matrix.minor }}-*
49+ CIBW_BUILD_VERBOSITY : 1
50+ CIBW_BEFORE_TEST : pip install -r {project}/requirements-test-backward.txt
51+ CIBW_TEST_COMMAND : pytest {project}/test
52+ - uses : actions/upload-artifact@master
53+ with :
54+ name : dist
55+ path : dist
56+ whl_eq_3_10 :
57+ name : Build / ${{ matrix.os }} / Python ${{ matrix.major }}.${{ matrix.minor }}
58+ strategy :
59+ fail-fast : false
60+ matrix :
61+ os : [macOS, Ubuntu, Windows]
62+ major : [3]
63+ minor : [10]
64+ runs-on : ${{ matrix.os }}-latest
65+ steps :
66+ - uses : actions/checkout@master
67+ - uses : actions/setup-python@master
68+ - run : echo '::add-matcher::.github/problem-matchers/gcc.json'
69+ if : matrix.os == 'macOS' || matrix.os == 'Ubuntu'
70+ - run : echo '::add-matcher::.github/problem-matchers/msvc.json'
71+ if : matrix.os == 'Windows'
72+ - uses : pypa/cibuildwheel@v2.9.0
4773 with :
4874 output-dir : dist
4975 env :
50- # CIBW_ARCHS: "${{ github.event_name == 'release' && github.event.action == 'published' && 'all' || 'auto' }}"
5176 CIBW_ARCHS_MACOS : x86_64 universal2 arm64
5277 CIBW_BEFORE_BUILD : pip install -r {project}/requirements.txt
5378 CIBW_BUILD : cp${{ matrix.major }}${{ matrix.minor }}-*
6186 upload :
6287 name : Publish
6388 if : github.event_name == 'release' && github.event.action == 'published'
64- needs : [tar_gz, whl ]
89+ needs : [tar_gz, whl_lt_3_10, whl_eq_3_10 ]
6590 runs-on : ubuntu-latest
6691 steps :
6792 - uses : actions/download-artifact@master
0 commit comments