We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca62209 commit d74e07cCopy full SHA for d74e07c
.github/actions/build_wheel/action.yml
@@ -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