forked from HDFGroup/hdf5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba84c72
commit 8b4aeaf
Showing
2 changed files
with
8 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# Build OpenMPI from source using the latest commit on the | ||
# 'main' branch and cache the results | ||
# 'main' branch and cache the results. Result is installed | ||
# to (or restored to) '${{ github.workspace }}/openmpi'. | ||
|
||
# Triggers the workflow on a call from another workflow | ||
on: | ||
workflow_call: | ||
inputs: | ||
install_path: | ||
description: "location to install OpenMPI to or restore to from cache" | ||
required: true | ||
type: string | ||
build_mode: | ||
description: "production vs. debug build" | ||
required: true | ||
|
@@ -24,12 +21,12 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install Linux Dependencies | ||
- name: Install Linux dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install build-essential libtool libtool-bin | ||
- name: Get OpenMPI Source | ||
- name: Get OpenMPI source | ||
uses: actions/[email protected] | ||
with: | ||
repository: 'open-mpi/ompi' | ||
|
@@ -51,8 +48,8 @@ jobs: | |
id: cache-openmpi-ubuntu-gcc | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ inputs.install_path }} | ||
key: ${{ runner.os }}-${{ runner.arch }}-gcc-openmpi-${{ steps.get-sha.outputs.sha }} | ||
path: ${{ github.workspace }}/openmpi | ||
key: ${{ runner.os }}-${{ runner.arch }}-gcc-openmpi-${{ steps.get-sha.outputs.sha }}-${{ inputs.build_mode }} | ||
|
||
- name: Install OpenMPI (GCC) (Production) | ||
if: ${{ steps.cache-openmpi-ubuntu-gcc.cache-hit != 'true' && (inputs.build_mode != 'debug') }} | ||
|
@@ -61,7 +58,7 @@ jobs: | |
./autogen.pl | ||
./configure \ | ||
CC=gcc \ | ||
--prefix=${{ inputs.install_path }} | ||
--prefix=${{ github.workspace }}/openmpi | ||
make -j2 | ||
make install | ||
|
@@ -72,7 +69,7 @@ jobs: | |
./autogen.pl | ||
./configure \ | ||
CC=gcc \ | ||
--prefix=${{ inputs.install_path }} \ | ||
--prefix=${{ github.workspace }}/openmpi \ | ||
--enable-debug | ||
make -j2 | ||
make install |
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