-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from WrenRaming/main
CI/CD update: build tRIBS packages with github actions workflow.
- Loading branch information
Showing
14 changed files
with
515 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: compile_and_test_macos_intel | ||
run-name: ${{github.actor}} is conducting a tRIBS build test for MacOS. | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- "**.cpp" | ||
- "**.h" | ||
- "**/CMakeLists.txt" | ||
|
||
jobs: | ||
build_and_test: | ||
runs-on: macos-13 #Intel Chip | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
# Install MPI Development Files | ||
- name: Install MPI Development Files | ||
run: brew install open-mpi | ||
|
||
# Set CMAKE_PREFIX_PATH | ||
#- name: Set CMAKE_PREFIX_PATH | ||
# run: export CMAKE_PREFIX_PATH=/usr/local/opt/open-mpi:$CMAKE_PREFIX_PATH | ||
|
||
# Build Parallel Version of tRIBS | ||
- name: Create build directory and run CMake for parallel version | ||
run: cmake -S . -B cmake-build-parallel -DCMAKE_BUILD_TYPE=Release -Dparallel=ON -Dpackaging=ON -Dos=macOS/Intel | ||
|
||
- name: Build Project Parallel | ||
run: cmake --build cmake-build-parallel --target all | ||
|
||
# Build Serial Version of tRIBS | ||
- name: Create build directory and run CMake for serial version | ||
run: cmake -S . -B cmake-build-serial -DCMAKE_BUILD_TYPE=Release -Dparallel=OFF -Dpackaging=ON -Dos=macOS/Intel | ||
|
||
- name: Build Project Serial | ||
run: cmake --build cmake-build-serial --target all | ||
|
||
# Run CPack | ||
- name: Package tRIBS | ||
run: cpack --config packaging/utilities/MultiCPackConfig.cmake | ||
|
||
# Upload STGZ package | ||
- name: Package artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: tRIBS-STGZ-macos-Intel | ||
path: "packaging/macOS/Intel/TIN-based Real-time Integrated Basin Simulator-5.2.0.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,7 @@ | |
.idea | ||
.run | ||
cmake-build-debug* | ||
cmake-build-release | ||
cmake-build-parallel | ||
cmake-build-serial | ||
build | ||
_CPack_Packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.