Skip to content

Commit 47cfeb0

Browse files
Merge branch 'main' into 2d_pattern_weld
2 parents 7633300 + e7ed598 commit 47cfeb0

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed

.github/workflows/build.yml

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,81 @@ on:
1010

1111
jobs:
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

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525

2626
- Fixed point welding bug in map_mesh function.
2727
- Changed example_isolines to work with the new compas_viewer.
28+
- GA for cibuildwheel, bring back the tessagon test.
2829

2930
### Removed
3031

0 commit comments

Comments
 (0)