Skip to content

Commit

Permalink
ci: enable sf
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoklee committed Sep 26, 2023
1 parent 582affa commit 79620de
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: mac-13 CMake clang15
name: mac-13 CMake clang15 debug fortran parallel sf

on:
workflow_dispatch:
push:
branches: [ develop ]

jobs:
build:
strategy:
Expand All @@ -14,7 +14,7 @@ jobs:
- name: "macOS Latest Clang"
artifact: "macOS.tar.xz"
os: macos-13
build_type: "Release"
build_type: "Debug"
cpp: OFF
fortran: ON
java: ON
Expand All @@ -28,16 +28,14 @@ jobs:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, 'skip-ci')"

# Steps represent a sequence of tasks that will be executed as part of the job

steps:
- name: Install Dependencies (macOS)
run: brew install ninja mpich

- name: Install gfortran
uses: awvwgk/setup-fortran@v1

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it

- name: Get Sources
uses: actions/checkout@v4

Expand All @@ -48,14 +46,27 @@ jobs:
echo $CC
mkdir "${{ runner.workspace }}/build"
cd "${{ runner.workspace }}/build"
cmake ${{ matrix.generator }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_TOOLCHAIN_FILE=${{ matrix.toolchain }} -DBUILD_SHARED_LIBS=ON -DHDF5_ENABLE_ALL_WARNINGS=ON -DHDF5_ENABLE_THREADSAFE:BOOL=${{ matrix.ts }} -DHDF5_BUILD_HL_LIB:BOOL=${{ matrix.hl }} -DHDF5_ENABLE_PARALLEL:BOOL=${{ matrix.parallel }} -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF -DHDF5_BUILD_CPP_LIB:BOOL=${{ matrix.cpp }} -DHDF5_BUILD_FORTRAN:BOOL=ON -DHDF5_BUILD_JAVA=${{ matrix.java }} -DMPIEXEC_MAX_NUMPROCS:STRING=2 $GITHUB_WORKSPACE
cmake ${{ matrix.generator }} \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_TOOLCHAIN_FILE=${{ matrix.toolchain }} \
-DHDF5_BUILD_CPP_LIB:BOOL=${{ matrix.cpp }} \
-DHDF5_BUILD_JAVA=${{ matrix.java }} \
-DHDF5_BUILD_FORTRAN:BOOL=ON \
-DHDF5_BUILD_HL_LIB:BOOL=${{ matrix.hl }} \
-DHDF5_ENABLE_ALL_WARNINGS=ON \
-DHDF5_ENABLE_PARALLEL:BOOL=${{ matrix.parallel }} \
-DHDF5_ENABLE_THREADSAFE:BOOL=${{ matrix.ts }} \
-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF \
-DMPIEXEC_MAX_NUMPROCS:STRING=2 \
$GITHUB_WORKSPACE
shell: bash

- name: Build
run: cmake --build . --config ${{ matrix.build_type }}
working-directory: ${{ runner.workspace }}/build
working-directory: ${{ runner.workspace }}/build

- name: Test
run: ctest --build . -C ${{ matrix.build_type }} -V
run: ctest --build . -C ${{ matrix.build_type }} \
-E MPI_TEST_H5DIFF-h5diff -VV --output-on-error
working-directory: ${{ runner.workspace }}/build

10 changes: 9 additions & 1 deletion .github/workflows/mac-clang15-xcode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,22 @@ jobs:
- uses: actions/checkout@v4
- name: Install Dependencies
run: brew install curl openssl libaec mpich
- name: Install gfortran
uses: awvwgk/setup-fortran@v1
- name: Generate Xcode project
run: |
export OPENSSL_ROOT_DIR=/usr/local/Cellar/openssl@3/3.1.1
export CC=$(brew --prefix llvm@15)/bin/clang
echo $CC
mkdir build
cd build
cmake -DHDF5_ENABLE_ROS3_VFD:BOOL=ON -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF -DHDF5_ENABLE_PARALLEL:BOOL=ON -G Xcode ..
cmake \
-DHDF5_BUILD_FORTRAN:BOOL=ON \
-DHDF5_ENABLE_PARALLEL:BOOL=ON \
-DHDF5_ENABLE_ROS3_VFD:BOOL=ON \
-DHDF5_ENABLE_SUBFILING_VFD:BOOL=ON \
-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF \
-G Xcode ..
cmake --build . --config Debug
ctest --build . -C Debug
sudo cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_INSTALL_CONFIG_NAME=Debug -P cmake_install.cmake
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/openbsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,15 @@ jobs:
version: '${{ matrix.os.version }}'
shell: bash
run: |
uname -a
echo $SHELL
pwd
ls -lah
whoami
env | sort
sudo pkg_add git
git clone https://github.com/hyoklee/hdf5
cd hdf5
sudo pkg_add cmake
mkdir build
cd build
cmake -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF ..
make
make test
cmake -DCMAKE_BUILD_TYPE=Debug \
-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF ..
ctest -T Build --output-on-error -j
cat Testing/Temporary/LastBuild* | grep warning
ctest -T Test --output-on-error -j
cat Testing/Temporary/LastTest*

0 comments on commit 79620de

Please sign in to comment.