From 19f93d8b0ad1e10884ab97b45a9f44c262630a04 Mon Sep 17 00:00:00 2001 From: Alyn James Date: Sun, 28 Dec 2025 17:49:31 +0000 Subject: [PATCH 1/4] Initial CI jobs --- .github/workflows/ci.yml | 66 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8b70e22 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,66 @@ +name: HDF5 Fortran API CI + +on: + push: + pull_request: + +jobs: + build_serial_HDF5_with_gfortran: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y \ + gfortran \ + cmake \ + libhdf5-dev \ + libhdf5-fortran-102 + + - name: Verify compilers and HDF5 + run: | + gfortran --version + cmake --version + + - name: Configure test runner with CMake and run + run: | + cmake -S tests/. -B build-tests \ + -DCMAKE_Fortran_COMPILER=gfortran + cmake --build build-tests + ./build-tests/h5testrunner + + + build_parallel_HDF5_with_gfortran: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y \ + gfortran \ + cmake \ + libopenmpi-dev \ + libhdf5-openmpi-dev + + - name: Verify compilers and HDF5 + run: | + gfortran --version + cmake --version + mpif90 --version + + - name: Configure test runner with CMake and run + run: | + cmake -S tests/. -B build-tests \ + -DCMAKE_Fortran_COMPILER=mpif90 -DMPI_VERSION=ON + cmake --build build-tests + ./build-tests/h5testrunner + ./build-tests/h5testrunner_mpi + mpirun -np 4 ./build-tests/h5testrunner_mpi From 3b962c2d7f4a8adaaab16ab49013aedd9747813c Mon Sep 17 00:00:00 2001 From: Alyn James Date: Sun, 28 Dec 2025 17:52:48 +0000 Subject: [PATCH 2/4] Initial CI jobs --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b70e22..858ee32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,9 +28,9 @@ jobs: - name: Configure test runner with CMake and run run: | - cmake -S tests/. -B build-tests \ + cmake -S ./tests/. -B ./build-tests \ -DCMAKE_Fortran_COMPILER=gfortran - cmake --build build-tests + cmake --build ./build-tests ./build-tests/h5testrunner @@ -58,7 +58,7 @@ jobs: - name: Configure test runner with CMake and run run: | - cmake -S tests/. -B build-tests \ + cmake -S ./test/. -B ./build-tests \ -DCMAKE_Fortran_COMPILER=mpif90 -DMPI_VERSION=ON cmake --build build-tests ./build-tests/h5testrunner From d3185bdd64b2bdf7a42ffe3326c1c080c1d1dd0e Mon Sep 17 00:00:00 2001 From: Alyn James Date: Sun, 28 Dec 2025 17:56:12 +0000 Subject: [PATCH 3/4] Initial CI jobs --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 858ee32..99343d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: - name: Configure test runner with CMake and run run: | - cmake -S ./tests/. -B ./build-tests \ + cmake -S ./test/. -B ./build-tests \ -DCMAKE_Fortran_COMPILER=gfortran cmake --build ./build-tests ./build-tests/h5testrunner @@ -63,4 +63,4 @@ jobs: cmake --build build-tests ./build-tests/h5testrunner ./build-tests/h5testrunner_mpi - mpirun -np 4 ./build-tests/h5testrunner_mpi + mpirun --allow-run-as-root -np 2 ./build-tests/h5testrunner_mpi From 5e21814f38bc21be9acbb9df03208442553ef46f Mon Sep 17 00:00:00 2001 From: Alyn James Date: Sun, 28 Dec 2025 17:59:11 +0000 Subject: [PATCH 4/4] Initial CI jobs --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 99343d6..7a7979c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,4 +63,5 @@ jobs: cmake --build build-tests ./build-tests/h5testrunner ./build-tests/h5testrunner_mpi - mpirun --allow-run-as-root -np 2 ./build-tests/h5testrunner_mpi + mpirun --allow-run-as-root --oversubscribe \ + -np 2 ./build-tests/h5testrunner_mpi