mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
| Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `7.0.0` | `7.0.1` | | [lukka/get-cmake](https://github.com/lukka/get-cmake) | `4.3.4` | `4.4.1` | | [actions/setup-java](https://github.com/actions/setup-java) | `5.4.0` | `5.6.0` | | [dorny/paths-filter](https://github.com/dorny/paths-filter) | `4.0.1` | `4.0.2` | | [github/codeql-action/init](https://github.com/github/codeql-action) | `4.36.2` | `4.37.3` | | [github/codeql-action/analyze](https://github.com/github/codeql-action) | `4.36.2` | `4.37.3` | | [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) | `4.36.2` | `4.37.3` | | [codespell-project/actions-codespell](https://github.com/codespell-project/actions-codespell) | `3abb875e3aa9713e40eed5aea082672a42f7f95c` | `3c04c03694eb927ff908b8b5abfe9c58b239b0ae` | | [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) | `6.2.1` | `6.2.3` | | [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm) | `1.5.0` | `1.5.2` | | [julia-actions/julia-runtest](https://github.com/julia-actions/julia-runtest) | `1.11.5` | `1.12.0` | | [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action) | `2.8.0` | `2.9.0` | | [vmactions/openbsd-vm](https://github.com/vmactions/openbsd-vm) | `1.4.4` | `1.4.5` | | [mpi4py/setup-mpi](https://github.com/mpi4py/setup-mpi) | `1.4.3` | `1.4.4` | | [softprops/action-gh-release](https://github.com/softprops/action-gh-release) | `3.0.1` | `3.0.2` | | [ossf/scorecard-action](https://github.com/ossf/scorecard-action) | `2.4.3` | `2.4.4` | | [actions/setup-python](https://github.com/actions/setup-python) | `6.3.0` | `7.0.0` |
96 lines
3.2 KiB
YAML
96 lines
3.2 KiB
YAML
# Build MPICH from source using the latest commit on the
|
|
# 'main' branch and cache the results. The result is compressed
|
|
# into a 'mpich.tar' archive to preserve permissions and
|
|
# then is uploaded as the artifact 'mpich' which can later
|
|
# be downloaded with 'actions/download-artifact' and then
|
|
# uncompressed with 'tar xvf mpich.tar -C <directory>'
|
|
|
|
# Triggers the workflow on a call from another workflow
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
build_mode:
|
|
description: "Release vs. Debug build"
|
|
required: true
|
|
type: string
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
ubuntu_gcc_build_and_test:
|
|
name: "Build MPICH ${{ inputs.build_mode }} (GCC)"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Install Linux dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install build-essential libtool libtool-bin
|
|
|
|
- name: Get MPICH source
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
repository: 'pmodels/mpich'
|
|
path: 'mpich'
|
|
submodules: recursive
|
|
|
|
- name: Get MPICH commit hash
|
|
shell: bash
|
|
id: get-sha
|
|
run: |
|
|
cd $GITHUB_WORKSPACE/mpich
|
|
export MPICH_SHA=$(git rev-parse HEAD)
|
|
echo "MPICH_SHA=$MPICH_SHA" >> $GITHUB_ENV
|
|
echo "sha=$MPICH_SHA" >> $GITHUB_OUTPUT
|
|
# Output SHA for debugging
|
|
echo "MPICH_SHA=$MPICH_SHA"
|
|
|
|
- name: Cache MPICH (GCC) installation
|
|
id: cache-mpich-ubuntu-gcc
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v4
|
|
with:
|
|
path: ${{ runner.workspace }}/mpich
|
|
key: ${{ runner.os }}-${{ runner.arch }}-gcc-mpich-${{ steps.get-sha.outputs.sha }}-${{ inputs.build_mode }}
|
|
|
|
# Enable threads=multiple for testing with Subfiling and
|
|
# VOL connectors that require MPI_THREAD_MULTIPLE
|
|
- name: Install MPICH (GCC) (Release)
|
|
if: ${{ steps.cache-mpich-ubuntu-gcc.outputs.cache-hit != 'true' && (inputs.build_mode == 'Release') }}
|
|
run: |
|
|
cd $GITHUB_WORKSPACE/mpich
|
|
./autogen.sh
|
|
./configure \
|
|
CC=gcc \
|
|
--prefix=${{ runner.workspace }}/mpich \
|
|
--enable-threads=multiple
|
|
make -j2
|
|
make install
|
|
|
|
# Enable threads=multiple for testing with Subfiling and
|
|
# VOL connectors that require MPI_THREAD_MULTIPLE
|
|
- name: Install MPICH (GCC) (Debug)
|
|
if: ${{ steps.cache-mpich-ubuntu-gcc.outputs.cache-hit != 'true' && (inputs.build_mode == 'Debug') }}
|
|
run: |
|
|
cd $GITHUB_WORKSPACE/mpich
|
|
./autogen.sh
|
|
./configure \
|
|
CC=gcc \
|
|
--prefix=${{ runner.workspace }}/mpich \
|
|
--enable-g=most \
|
|
--enable-debuginfo \
|
|
--enable-threads=multiple
|
|
make -j2
|
|
make install
|
|
|
|
- name: Tar MPICH installation to preserve permissions for artifact
|
|
run: tar -cvf mpich.tar -C ${{ runner.workspace }} mpich
|
|
|
|
- name: Save MPICH installation artifact
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v5
|
|
with:
|
|
name: mpich
|
|
path: mpich.tar
|
|
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
|