From 58ec887aa93ba2817127655e6a9321585ab72634 Mon Sep 17 00:00:00 2001 From: "H. Joe Lee" Date: Fri, 29 Mar 2024 16:23:32 -0500 Subject: [PATCH] ci: add julia actions for pr test --- .github/workflows/lin-auto-jl.yml | 39 +++++++++++++++++++++++++++++ .github/workflows/lin-jl.yml | 41 +++++++++++++++++++++++++++++++ WATCHME.md | 8 +++--- 3 files changed, 84 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/lin-auto-jl.yml create mode 100644 .github/workflows/lin-jl.yml diff --git a/.github/workflows/lin-auto-jl.yml b/.github/workflows/lin-auto-jl.yml new file mode 100644 index 00000000000..8a51dab92e8 --- /dev/null +++ b/.github/workflows/lin-auto-jl.yml @@ -0,0 +1,39 @@ +name: lin auto jl + +on: [push, pull_request] + +jobs: + julia: + name: lin auto jl + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + path: hdf5 + - name: Install HDF5 + run: | + cd hdf5 + ./autogen.sh + ./configure --prefix=/tmp + make -j + make install + + - uses: julia-actions/setup-julia@latest + with: + version: '1.6' + arch: 'x64' + - uses: actions/checkout@v4 + with: + repository: JuliaIO/HDF5.jl + path: . + + - name: Generate LocalPreferences + run: | + echo '[HDF5]' >> LocalPreferences.toml + echo 'libhdf5 = "/tmp/lib/libhdf5.so"' >> LocalPreferences.toml + echo 'libhdf5_hl = "/tmp/lib/libhdf5_hl.so"' >> LocalPreferences.toml + + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-runtest@latest + env: + JULIA_DEBUG: Main diff --git a/.github/workflows/lin-jl.yml b/.github/workflows/lin-jl.yml new file mode 100644 index 00000000000..85685309d28 --- /dev/null +++ b/.github/workflows/lin-jl.yml @@ -0,0 +1,41 @@ +name: lin jl + +on: [push, pull_request] + +jobs: + julia: + name: lin jl + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + path: hdf5 + - name: Install HDF5 + run: | + cd hdf5 + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/tmp .. + make -j + make install + cd .. + + - uses: julia-actions/setup-julia@latest + with: + version: '1.6' + arch: 'x64' + - uses: actions/checkout@v4 + with: + repository: JuliaIO/HDF5.jl + path: . + + - name: Generate LocalPreferences + run: | + echo '[HDF5]' >> LocalPreferences.toml + echo 'libhdf5 = "/tmp/lib/libhdf5.so"' >> LocalPreferences.toml + echo 'libhdf5_hl = "/tmp/lib/libhdf5_hl.so"' >> LocalPreferences.toml + + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-runtest@latest + env: + JULIA_DEBUG: Main diff --git a/WATCHME.md b/WATCHME.md index 07d00150376..df3fb8b0e99 100644 --- a/WATCHME.md +++ b/WATCHME.md @@ -4,7 +4,7 @@ | Test | Status | | -----| ------ | -| amd64 | [![r](https://github.com/hyoklee/hdf5/actions/workflows/r.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/r.yml) | +| amd64 | [![amd64](https://github.com/hyoklee/hdf5/actions/workflows/r.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/r.yml) | | arm64 | [![arm64](https://github.com/hyoklee/hdf5/actions/workflows/arm64.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/arm64.yml) | | armv7 | [![armv7 lin](https://github.com/hyoklee/hdf5/actions/workflows/armv7-lin.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/armv7-lin.yml) | | riscv64 | [![riscv64 lin](https://github.com/hyoklee/hdf5/actions/workflows/riscv64-lin.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/riscv64-lin.yml) | @@ -75,14 +75,14 @@ | ------| ------ | | Debug | [![d](https://github.com/hyoklee/hdf5/actions/workflows/d.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/d.yml) | | Off | [![mac13 off](https://github.com/hyoklee/hdf5/actions/workflows/mac13-off.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/mac13-off.yml) | -| Shared | [![![nbsd f -sh](https://github.com/hyoklee/hdf5/actions/workflows/nbsd-f-sh.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/nbsd-f-sh.yml) | +| Shared | [![nbsd f -sh](https://github.com/hyoklee/hdf5/actions/workflows/nbsd-f-sh.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/nbsd-f-sh.yml) | ### Languages | Test | Status | | ------| ------ | -| Fortran | [nbsd f](https://github.com/hyoklee/hdf5/actions/workflows/nbsd-f.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/nbsd-f.yml) [![s390x lin f](https://github.com/hyoklee/hdf5/actions/workflows/s390x-lin-f.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/s390x-lin-f.yml) | +| Fortran | [![nbsd f](https://github.com/hyoklee/hdf5/actions/workflows/nbsd-f.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/nbsd-f.yml) [![s390x lin f](https://github.com/hyoklee/hdf5/actions/workflows/s390x-lin-f.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/s390x-lin-f.yml) | | Java | [![fbsd f j](https://github.com/hyoklee/hdf5/actions/workflows/fbsd-f-j.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/fbsd-f-j.yml) [![arm64 fbsd f j](https://github.com/hyoklee/hdf5/actions/workflows/arm64-fbsd-f-j.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/arm64-fbsd-f-j.yml) [![nbsd f j](https://github.com/hyoklee/hdf5/actions/workflows/nbsd-f-j.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/nbsd-f-j.yml) [![arm64 fbsd f j](https://github.com/hyoklee/hdf5/actions/workflows/arm64-fbsd-f-j.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/arm64-fbsd-f-j.yml) [![fbsd lf j](https://github.com/hyoklee/hdf5/actions/workflows/fbsd-lf-j.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/fbsd-lf-j.yml) [![mac ninja clang j ompi](https://github.com/hyoklee/hdf5/actions/workflows/mac-ninja-clang-j-ompi.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/mac-ninja-clang-j-ompi.yml) [![mac14 ninja h j ompi](https://github.com/hyoklee/hdf5/actions/workflows/mac14-ninja-h-j-ompi-cd.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/mac14-ninja-h-j-ompi-cd.yml) | | Julia | [![lin jl](https://github.com/hyoklee/hdf5/actions/workflows/lin-jl.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/lin-jl.yml) [![lin auto jl](https://github.com/hyoklee/hdf5/actions/workflows/lin-auto-jl.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/lin-auto-jl.yml) | | Python | [![lin spack h5py](https://github.com/hyoklee/hdf5/actions/workflows/lin-spack-h5py.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/lin-spack-h5py.yml) [![mac spack h5py](https://github.com/hyoklee/hdf5/actions/workflows/mac-spack-h5py.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/mac-spack-h5py.yml) | @@ -114,7 +114,7 @@ | Test | Status | | ---------| ------ | -| Interop. | [![HDF-EOS5](https://img.shields.io/github/actions/workflow/status/HDFGroup/hdf5/hyoklee5.yml?branch=develop&label=HDF-EOS5)](https://github.com/HDFGroup/hdf5/actions?query=branch%3Adevelop) [![netCDF](https://github.com/hyoklee/hdf5/actions/workflows/netcdf.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/netcdf.yml) | +| Interop. | [![HDF-EOS5](https://img.shields.io/github/actions/workflow/status/hyoklee/hdf5/hdfeos5.yml?branch=develop&label=HDF-EOS5)](https://github.com/hyoklee/hdf5/actions?query=branch%3Adevelop) [![netCDF](https://github.com/hyoklee/hdf5/actions/workflows/netcdf.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/netcdf.yml) | [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/HDFGroup/hdf5.svg)](http://isitmaintained.com/project/HDFGroup/hdf5 "Average time to resolve an issue") [![Percentage of issues still open](http://isitmaintained.com/badge/open/HDFGroup/hdf5.svg)](http://isitmaintained.com/project/HDFGroup/hdf5 "Percentage of issues still open")