Skip to content

Commit

Permalink
ci: add freebsd actions
Browse files Browse the repository at this point in the history
close #173
  • Loading branch information
hyoklee committed Mar 19, 2024
1 parent 237c8c0 commit c0dc252
Show file tree
Hide file tree
Showing 5 changed files with 202 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/arm64-fbsd-f-j.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: arm64 fbsd f j

on: [push, pull_request]

jobs:
test:
name: ${{ matrix.os.name }} ${{ matrix.os.architecture }} ${{ matrix.os.version }} on ${{ matrix.os.host }}
runs-on: ${{ matrix.os.host }}
strategy:
fail-fast: false
matrix:
os:
- name: freebsd
architecture: arm64
version: '14.0'
host: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]

- name: ${{ matrix.os.name }}
uses: cross-platform-actions/[email protected]
env:
FOO: A
BAR: B
with:
environment_variables: FOO BAR
operating_system: ${{ matrix.os.name }}
architecture: ${{ matrix.os.architecture }}
version: '${{ matrix.os.version }}'
shell: bash
run: |
sudo pkg install -y git
sudo pkg install -y cmake
sudo pkg install -y jpeg-turbo
sudo pkg install -y openjdk21
sudo pkg install -y gcc13
pkg info -l openjdk21
export JAVA_HOME=/usr/local/openjdk21
export FC=gfortran13
sudo mount -t fdescfs fdesc /dev/fd
sudo mount -t procfs proc /proc
mkdir build
cd build
cmake \
-DBUILDNAME:STRING=f.j \
-DHDF5_BUILD_FORTRAN:BOOL=ON \
-DHDF5_BUILD_JAVA:BOOL=ON \
-DCTEST_DROP_SITE_INIT:STRING="my.cdash.org" \
-DSITE:STRING=fbsd.arm64 ..
ctest -D Experimental
52 changes: 52 additions & 0 deletions .github/workflows/fbsd-f-j.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: fbsd f j

on: [push, pull_request]

jobs:
test: # make sure the action works on a clean machine without building
name: ${{ matrix.os.name }} ${{ matrix.os.architecture }} ${{ matrix.os.version }} on ${{ matrix.os.host }}
runs-on: ${{ matrix.os.host }}
strategy:
fail-fast: false
matrix:
os:
- name: freebsd
architecture: x86-64
version: '14.0'
host: ubuntu-latest
steps:
steps:
- name: Checkout
uses: actions/[email protected]

- name: ${{ matrix.os.name }}
uses: cross-platform-actions/[email protected]
env:
FOO: A
BAR: B
with:
environment_variables: FOO BAR
operating_system: ${{ matrix.os.name }}
architecture: ${{ matrix.os.architecture }}
version: '${{ matrix.os.version }}'
shell: bash
run: |
sudo pkg install -y git
sudo pkg install -y cmake
sudo pkg install -y jpeg-turbo
sudo pkg install -y openjdk21
sudo pkg install -y gcc13
pkg info -l openjdk21
export JAVA_HOME=/usr/local/openjdk21
export FC=gfortran13
sudo mount -t fdescfs fdesc /dev/fd
sudo mount -t procfs proc /proc
mkdir build
cd build
cmake \
-DBUILDNAME:STRING=lf.j \
-D HDF5_BUILD_FORTRAN:BOOL=ON \
-D HDF5_BUILD_JAVA:BOOL=ON \
-D CTEST_DROP_SITE_INIT:STRING="my.cdash.org" \
-D SITE:STRING=fbsd ..
ctest -D Experimental
56 changes: 56 additions & 0 deletions .github/workflows/fbsd-lf-j.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: fbsd lf j

on: [push, pull_request]

jobs:
test: # make sure the action works on a clean machine without building
name: ${{ matrix.os.name }} ${{ matrix.os.architecture }} ${{ matrix.os.version }} on ${{ matrix.os.host }}
runs-on: ${{ matrix.os.host }}
strategy:
fail-fast: false
matrix:
os:
- name: freebsd
architecture: x86-64
version: '14.0'
host: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]

- name: ${{ matrix.os.name }}
uses: cross-platform-actions/[email protected]
env:
FOO: A
BAR: B
with:
environment_variables: FOO BAR
operating_system: ${{ matrix.os.name }}
architecture: ${{ matrix.os.architecture }}
version: '${{ matrix.os.version }}'
shell: bash
run: |
sudo pkg install -y git
sudo pkg install -y cmake
sudo pkg install -y jpeg-turbo
sudo pkg install -y openjdk21
sudo pkg install -y lfortran
export FC=lfortran
export FFLAGS="--backend=llvm"
pkg info -l openjdk21
export JAVA_HOME=/usr/local/openjdk21
sudo mount -t fdescfs fdesc /dev/fd
sudo mount -t procfs proc /proc
git clone https://github.com/HDFGroup/hdf4
cd hdf4
mkdir build
cd build
cmake \
-DBUILDNAME:STRING=lf.j \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DCMAKE_Fortran_FLAGS="--backend=llvm -fPIC" \
-DHDF5_BUILD_FORTRAN:BOOL=ON \
-DHDF5_BUILD_JAVA:BOOL=ON \
-DCTEST_DROP_SITE_INIT:STRING="my.cdash.org" \
-DSITE:STRING=fbsd ..
ctest -D Experimental
40 changes: 40 additions & 0 deletions .github/workflows/fbsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: fbsd

on: [push, pull_request]

jobs:
test: # make sure the action works on a clean machine without building
name: ${{ matrix.os.name }} ${{ matrix.os.architecture }} ${{ matrix.os.version }} on ${{ matrix.os.host }}
runs-on: ${{ matrix.os.host }}
strategy:
fail-fast: false
matrix:
os:
- name: freebsd
architecture: x86-64
version: '14.0'
host: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]

- name: ${{ matrix.os.name }}
uses: cross-platform-actions/[email protected]
env:
FOO: A
BAR: B
with:
environment_variables: FOO BAR
operating_system: ${{ matrix.os.name }}
architecture: ${{ matrix.os.architecture }}
version: '${{ matrix.os.version }}'
shell: bash
run: |
sudo pkg install -y git
sudo pkg install -y cmake
mkdir build
cd build
cmake \
-D CTEST_DROP_SITE_INIT:STRING="my.cdash.org" \
-D SITE:STRING=fbsd ..
ctest -D Experimental
4 changes: 3 additions & 1 deletion WATCHME.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| Test | Status |
| -----| ------ |
| arm64 | [![arm64](https://github.com/hyoklee/hdf5/actions/workflows/arm64.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/arm64.yml) [![arm64 auto](https://github.com/hyoklee/hdf5/actions/workflows/arm64-auto.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/arm64-auto.yml) [![arm64 lin](https://github.com/hyoklee/hdf5/actions/workflows/arm64-lin.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/arm64-lin.yml)|
| arm64 | [![arm64](https://github.com/hyoklee/hdf5/actions/workflows/arm64.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/arm64.yml) [![arm64 auto](https://github.com/hyoklee/hdf5/actions/workflows/arm64-auto.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/arm64-auto.yml) [![arm64 lin](https://github.com/hyoklee/hdf5/actions/workflows/arm64-lin.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/arm64-lin.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)|
| 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) |
| powerpc64 | [![ppc64le lin](https://github.com/hyoklee/hdf5/actions/workflows/ppc64le-lin.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/ppc64le-lin.yml) |
Expand All @@ -16,6 +16,7 @@
| Test | Status |
| --------| ------ |
| OpenBSD | [![r](https://github.com/hyoklee/hdf5/actions/workflows/r.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/r.yml) [![d](https://github.com/hyoklee/hdf5/actions/workflows/d.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/d.yml) [![auto](https://github.com/hyoklee/hdf5/actions/workflows/auto.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/auto.yml) [![arm64](https://github.com/hyoklee/hdf5/actions/workflows/arm64.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/arm64.yml) [![arm64 auto](https://github.com/hyoklee/hdf5/actions/workflows/arm64-auto.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/arm64-auto.yml) |
| FreeBSD | [![fbsd](https://github.com/hyoklee/hdf5/actions/workflows/fbsd.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/fbsd.yml) [![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) [![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) [![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) |
| macOS | [![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) |
| MSYS2 | [![msys2](https://github.com/hyoklee/hdf5/actions/workflows/msys2.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/msys2.yml) |
| Cygwin | [![auto](https://github.com/hyoklee/hdf5/actions/workflows/cyg-auto.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/cyg-auto.yml) [![cmake](https://github.com/hyoklee/hdf5/actions/workflows/cyg.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/cyg.yml) |
Expand All @@ -41,6 +42,7 @@
| gcc_min | [![lin gcc_min](https://github.com/hyoklee/hdf5/actions/workflows/lin-gcc_min.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/lin-gcc_min.yml) |
| icx | [![linux CMake icx](https://github.com/hyoklee/hdf5/actions/workflows/linux-icx.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/linux-icx.yml) [![lin auto icx](https://github.com/hyoklee/hdf5/actions/workflows/lin-auto-icx.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/lin-auto-icx.yml) [![linux autotools icx debug](https://github.com/hyoklee/hdf5/actions/workflows/linux-icx-auto-debug.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/linux-icx-auto-debug.yml) [![linux CMake icx sf](https://github.com/hyoklee/hdf5/actions/workflows/linux-icx-sf.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/linux-icx-sf.yml) [![linux autotools icx sf debug](https://github.com/hyoklee/hdf5/actions/workflows/linux-icx-auto-sf-debug.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/linux-icx-auto-sf-debug.yml) [![win ninja icx](https://github.com/hyoklee/hdf5/actions/workflows/win-ninja-icx.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/win-ninja-icx.yml) [![windows ninja icx p](https://github.com/hyoklee/hdf5/actions/workflows/win-ninja-icx-p.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/win-ninja-icx-p.yml) |
| ifx | [![windows ninja icx ifx](https://github.com/hyoklee/hdf5/actions/workflows/win-ninja-icx-f.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/win-ninja-icx-f.yml) [![win ninja icx ifx sh](https://github.com/hyoklee/hdf5/actions/workflows/win-ninja-icx-f-sh.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/win-ninja-icx-f-sh.yml) [![windows ninja icx ifx p](https://github.com/hyoklee/hdf5/actions/workflows/win-ninja-icx-f-p.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/win-ninja-icx-f-p.yml) [![win ninja icx ifx p sf](https://github.com/hyoklee/hdf5/actions/workflows/win-ninja-icx-f-p-sf.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/win-ninja-icx-f-p-sf.yml) |
| lfortran | [![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) |
| ndk | [![lin ndk](https://github.com/hyoklee/hdf5/actions/workflows/lin-ndk.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/lin-ndk.yml) [![lin auto ndk](https://github.com/hyoklee/hdf5/actions/workflows/lin-auto-ndk.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/lin-auto-ndk.yml) |
| nvhpc | [![lin nvhpc](https://github.com/hyoklee/hdf5/actions/workflows/lin-nvhpc.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/lin-nvhpc.yml) [![lin nvhpc f p](https://github.com/hyoklee/hdf5/actions/workflows/lin-nvhpc-f-p.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/lin-nvhpc-f-p.yml) [![lin ninja nvhpc f p](https://github.com/hyoklee/hdf5/actions/workflows/lin-ninja-nvhpc-f-p.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/lin-ninja-nvhpc-f-p.yml) [![lin auto nvhpc f sh p](https://github.com/hyoklee/hdf5/actions/workflows/lin-auto-nvhpc-f-sh-p.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/lin-auto-nvhpc-f-sh-p.yml) [![lin nvhpc f p sf](https://github.com/hyoklee/hdf5/actions/workflows/lin-nvhpc-f-p-sf.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/lin-nvhpc-f-p-sf.yml) [![lin auto nvhpc f sh p sf](https://github.com/hyoklee/hdf5/actions/workflows/lin-auto-nvhpc-f-sh-p-sf.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/lin-auto-nvhpc-f-sh-p-sf.yml) |

Expand Down

0 comments on commit c0dc252

Please sign in to comment.