1010
1111jobs :
1212 Build :
13- if : " !contains(github.event.pull_request.labels.*.name, 'docs-only')"
13+ if : ${{ !contains(github.event.pull_request.labels.*.name, 'docs-only') }}
1414 runs-on : ${{ matrix.os }}
1515 strategy :
1616 matrix :
1717 os : [ubuntu-latest, macos-latest, windows-latest]
1818 python : ["3.10"]
1919
2020 steps :
21+ - uses : actions/checkout@v4
22+ with :
23+ fetch-depth : 0
24+
25+ - name : Set up conda
26+ uses : conda-incubator/setup-miniconda@v3
27+ with :
28+ python-version : ${{ matrix.python }}
29+ channels : conda-forge
30+ activate-environment : " compas_123-dev"
31+
32+ - name : Configure conda channels
33+ shell : bash -el {0}
34+ run : |
35+ conda config --add channels defaults
36+ conda config --set channel_priority strict
37+
2138 - uses : compas-dev/compas-actions.build@v4
2239 with :
2340 invoke_lint : true
2441 use_conda : true
2542 check_import : true
2643 python : ${{ matrix.python }}
44+
45+ build_wheels :
46+ name : cibuildwheel on ${{ matrix.platform }}
47+ needs : [Build] # Only run if Build job succeeds
48+ runs-on : ${{ matrix.os }}
49+ strategy :
50+ fail-fast : false
51+ matrix :
52+ include :
53+ - os : ubuntu-latest
54+ platform : manylinux
55+ - os : macos-latest
56+ platform : mac
57+ - os : windows-latest
58+ platform : windows
59+
60+ steps :
61+ - uses : actions/checkout@v4
62+ with :
63+ fetch-depth : 0
64+
65+ - name : Install cibuildwheel
66+ run : pipx install cibuildwheel==2.23.1
67+
68+ - name : Build wheels
69+ run : cibuildwheel --output-dir wheelhouse .
70+
71+ - uses : actions/upload-artifact@v4
72+ with :
73+ name : wheels-${{ matrix.platform }}
74+ path : wheelhouse/*.whl
75+
76+ build_sdist :
77+ name : Test source distribution
78+ runs-on : ubuntu-latest
79+ steps :
80+ - uses : actions/checkout@v4
81+ with :
82+ fetch-depth : 0
83+
84+ - name : Build SDist
85+ run : pipx run build --sdist
86+
87+ - uses : actions/upload-artifact@v4
88+ with :
89+ name : sdist
90+ path : dist/*.tar.gz
0 commit comments