Skip to content

Commit d74e07c

Browse files
committed
Add build wheel action
1 parent ca62209 commit d74e07c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: build_wheel
2+
description: Build the MeshPy wheel
3+
inputs:
4+
source-command:
5+
description: Command to source the virtual environment
6+
required: false
7+
default: ""
8+
runs:
9+
using: composite
10+
steps:
11+
- name: Build MeshPy wheel
12+
shell: bash
13+
run: |
14+
cd ${GITHUB_WORKSPACE}
15+
${{ inputs.source-command }}
16+
pip -m build
17+
# Check if we got exactly one wheel file
18+
shopt -s nullglob
19+
files=(dist/*.whl)
20+
if [ ${#files[@]} -ne 1 ]; then
21+
echo "Expected exactly one .whl file in dist/, found ${#files[@]}"
22+
exit 1
23+
fi

0 commit comments

Comments
 (0)