Skip to content

Commit 7cfb573

Browse files
Added python module workflows
1 parent b670f19 commit 7cfb573

20 files changed

Lines changed: 150 additions & 62 deletions

.github/workflows/linux-push.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
with:
1616
package-name: febio-studio
1717
requires-sdk: true
18-
python-module: true
1918
publish: true
2019
aws-ami-id: ${{ vars.LINUX_AMI }}
2120
secrets: inherit
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI - Linux Python Module
2+
3+
on:
4+
workflow_dispatch:
5+
repository_dispatch:
6+
types: [release-published, python-module]
7+
8+
permissions:
9+
id-token: write # This is required for requesting the JWT
10+
contents: read # This is required for actions/checkout
11+
jobs:
12+
call_workflow:
13+
uses: febiosoftware/febio-workflows/.github/workflows/linux-reusable.yml@develop
14+
with:
15+
package-name: python-module
16+
python-module: true
17+
publish: true
18+
aws-ami-id: ${{ vars.LINUX_AMI }}
19+
build-script: buildPython.sh
20+
secrets: inherit

.github/workflows/macos-push.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ jobs:
1717
package-name: febio-studio
1818
requires-sdk: true
1919
post-build: true
20-
python-module: true
2120
publish: true
2221
secrets: inherit
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI - macOS Python Module
2+
3+
on:
4+
workflow_dispatch:
5+
repository_dispatch:
6+
types: [release-published, python-module]
7+
8+
permissions:
9+
id-token: write # This is required for requesting the JWT
10+
contents: read # This is required for actions/checkout
11+
12+
jobs:
13+
call_workflow:
14+
uses: febiosoftware/febio-workflows/.github/workflows/macos-reusable.yml@develop
15+
with:
16+
package-name: python-module
17+
python-module: true
18+
publish: true
19+
build-script: buildPython.sh
20+
secrets: inherit
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CI - Python Module
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
dispatch-python-workflow:
8+
name: "Repository dispatch Python workflow"
9+
runs-on: "ubuntu-latest"
10+
steps:
11+
- name: "Dispatch repository with python-module"
12+
uses: febiosoftware/febio-workflows/.github/actions/repository-dispatch@develop
13+
with:
14+
github-pat-token: ${{ secrets.GITHUB_TOKEN }}
15+
repository: "febiosoftware/FEBioStudio"
16+
client-payload: "client_payload[ref_name]=${{ github.ref_name }}"
17+
event-type: python-module

.github/workflows/windows-push.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
with:
1616
package-name: febio-studio
1717
requires-sdk: true
18-
python-module: true
1918
publish: true
2019
aws-ami-id: ${{ vars.WINDOWS_AMI }}
2120
secrets: inherit
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI - Windows Python Module
2+
3+
on:
4+
workflow_dispatch:
5+
repository_dispatch:
6+
types: [release-published, python-module]
7+
8+
permissions:
9+
id-token: write # This is required for requesting the JWT
10+
contents: read # This is required for actions/checkout
11+
jobs:
12+
call_workflow:
13+
uses: febiosoftware/febio-workflows/.github/workflows/windows-reusable.yml@develop
14+
with:
15+
package-name: python-module
16+
python-module: true
17+
publish: true
18+
aws-ami-id: ${{ vars.WINDOWS_AMI }}
19+
build-script: buildPython.bat
20+
secrets: inherit

FindDependencies.cmake

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -429,13 +429,6 @@ mark_as_advanced(FFMPEG_DBG_LIB_DIR)
429429

430430
# OpenGL
431431
find_package(OpenGL REQUIRED)
432-
# Use non-standard PATH_SUFFIXES on HOMEBREW macs
433-
option(HOMEBREW "Did you use HOMEBREW to install dependencies" OFF)
434-
if(HOMEBREW AND APPLE)
435-
find_package(GLEW PATH_SUFFIXES glew REQUIRED)
436-
else()
437-
find_package(GLEW REQUIRED)
438-
endif()
439432

440433
# Python
441434
find_package(Python3 COMPONENTS Development)

ci/Linux/build.sh

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,6 @@ main() {
1111
pushd cmbuild
1212
make -j $(nproc)
1313
popd
14-
15-
# Standalone Python module
16-
pushd PyLib
17-
git clone --depth 1 https://github.com/febiosoftware/FEBio.git
18-
19-
cmake -L . -B cmbuild \
20-
-DFEBioDir=FEBio \
21-
-DUSE_TETGEN=OFF \
22-
-DPython3_ROOT_DIR=/home/ubuntu/.pyenv/versions/3.13.1 \
23-
-DPython3_EXECUTABLE=/home/ubuntu/.pyenv/versions/3.13.1/bin/python3 \
24-
-DPython3_INCLUDE_DIR=/home/ubuntu/.pyenv/versions/3.13.1/include/python3.13 \
25-
-DPython3_LIBRARY=/home/ubuntu/.pyenv/versions/3.13.1/lib/libpython3.13.so
26-
27-
pushd cmbuild
28-
make -j $(nproc)
29-
popd
30-
popd
3114
}
3215

3316
main

ci/Linux/buildPython.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
set -e
3+
4+
main() {
5+
git clone https://github.com/pybind/pybind11.git /opt/pybind11
6+
7+
pushd PyLib
8+
git clone --depth 1 https://github.com/febiosoftware/FEBio.git
9+
10+
cmake -L . -B cmbuild \
11+
-DFEBioDir=FEBio \
12+
-DUSE_TETGEN=OFF \
13+
-DPython3_ROOT_DIR=/home/ubuntu/.pyenv/versions/3.13.1 \
14+
-DPython3_EXECUTABLE=/home/ubuntu/.pyenv/versions/3.13.1/bin/python3 \
15+
-DPython3_INCLUDE_DIR=/home/ubuntu/.pyenv/versions/3.13.1/include/python3.13 \
16+
-DPython3_LIBRARY=/home/ubuntu/.pyenv/versions/3.13.1/lib/libpython3.13.so
17+
18+
pushd cmbuild
19+
make -j $(nproc)
20+
popd
21+
popd
22+
}
23+
24+
main

0 commit comments

Comments
 (0)