Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendersonHDF committed Oct 30, 2024
1 parent ba84c72 commit 8b4aeaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/build_openmpi_source.yml
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
Expand All @@ -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/checkout@v4.1.7
with:
repository: 'open-mpi/ompi'
Expand All @@ -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') }}
Expand All @@ -61,7 +58,7 @@ jobs:
./autogen.pl
./configure \
CC=gcc \
--prefix=${{ inputs.install_path }}
--prefix=${{ github.workspace }}/openmpi
make -j2
make install
Expand All @@ -72,7 +69,7 @@ jobs:
./autogen.pl
./configure \
CC=gcc \
--prefix=${{ inputs.install_path }} \
--prefix=${{ github.workspace }}/openmpi \
--enable-debug
make -j2
make install
1 change: 0 additions & 1 deletion .github/workflows/test_build_openmpi_source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ jobs:
name: "OpenMPI debug"
uses: ./.github/workflows/build_openmpi_source.yml
with:
install_path: ${{ github.workspace }}/openmpi_install
build_mode: "debug"

0 comments on commit 8b4aeaf

Please sign in to comment.