Skip to content

Commit

Permalink
Added plugin builds to FEBio push workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrossherron committed May 13, 2024
1 parent 95b8f29 commit 6efe093
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ci/Linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ set -e
. $(dirname $0)/cmake.sh

main() {
pushd $(dirname $0)/../..
run_cmake
pushd cmbuild
make -j $(nproc)
popd
popd
}

main
3 changes: 3 additions & 0 deletions ci/Linux/cmake.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
LIB_DIR="/usr/lib/x86_64-linux-gnu"

FEBIO_SDK="${FEBIO_SDK:-febio4-sdk}"
FEBIO_SDK="$(realpath $FEBIO_SDK)"

run_cmake() {
cmake -L . -B cmbuild \
-DFEBio_SDK=$FEBIO_SDK
Expand Down
9 changes: 7 additions & 2 deletions ci/Windows/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ call "%ONEAPI_ROOT%\setvars.bat"
set /a "PROC=%NUMBER_OF_PROCESSORS%"
cmake -version

SET STARTDIR=%cd%
SET SCRIPTDIR=%~dp0

cd %SCRIPTDIR%\..\..\

cmake -L . -B cmbuild ^
-DFEBio_SDK=febio4-sdk
-DFEBio_SDK=%STARTDIR%\febio4-sdk
)
cd cmbuild
msbuild /P:Configuration=Release /P:WarningLevel=0 /m:%PROC% ALL_BUILD.vcxproj
cd ..
cd %STARTDIR%
exit 0
2 changes: 2 additions & 0 deletions ci/macOS/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ set -e
. $(dirname $0)/cmake.sh

main() {
pushd $(dirname $0)/../..
run_cmake
pushd cmbuild
make -j $(sysctl -n hw.ncpu)
popd
popd
}

main
1 change: 1 addition & 0 deletions ci/macOS/cmake.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FEBIO_SDK="${FEBIO_SDK:-febio4-sdk}"
FEBIO_SDK="$(realpath $FEBIO_SDK)"
run_cmake() {
cmake -L . -B cmbuild \
-DFEBio_SDK=$FEBIO_SDK \
Expand Down

0 comments on commit 6efe093

Please sign in to comment.