Skip to content

Commit

Permalink
ci: test cwin and nbsd
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoklee committed Feb 29, 2024
1 parent c584502 commit 07a8cbe
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/cwin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: cwin

on:
push:
branches: [ main ]

jobs:
test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- name: Install Cygwin
uses: cygwin/cygwin-install-action@master
with:
packages: cmake gcc-fortran libjpeg-devel make zlib-devel
- name: Test HDF4
run: |
git config --global core.autocrlf input
export PATH=/usr/bin:$PATH
mkdir build
cd build
which cmake
cmake \
-D BUILD_SHARED_LIBS:BOOL=OFF \
-D CTEST_DROP_SITE_INIT:STRING="my.cdash.org" \
-D SITE:STRING=cwin ..
ctest -D Experimental
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}'
56 changes: 56 additions & 0 deletions .github/workflows/nbsd-f-j.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: nbsd f j

on:
push:
branches: [ master ]

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: netbsd
architecture: x86-64
version: '9.3'
host: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: ${{ matrix.os.name }}
uses: cross-platform-actions/action@v0.23.0
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 pkgin -y install cmake
sudo pkgin -y install gcc7
sudo pkgin -y install git
sudo pkgin -y install jpeg-9e
sudo pkgin -y install mozilla-rootcerts
sudo pkgin -y install mozilla-rootcerts-openssl
sudo pkgin -y install openjdk21
export LD_LIBRARY_PATH=/usr/pkg/lib
export FC=/usr/pkg/gcc7/bin/gfortran
export JAVA_HOME=/usr/pkg/java/openjdk21
export JAVA_INCLUDE_PATH2=/usr/pkg/java/openjdk21/include/netbsd
ls /usr/pkg/java/openjdk21
mkdir build
cd build
cmake \
-D CTEST_DROP_SITE_INIT:STRING="my.cdash.org" \
-D HDF4_BUILD_FORTRAN:BOOL=ON \
-D HDF4_BUILD_JAVA:BOOL=ON \
-D JAVA_INCLUDE_PATH2="/usr/pkg/java/openjdk21/include/netbsd" \
-D SITE:STRING=j.f.nbsd ..
ctest -T Build -VV --output-on-error -j
ctest -T Test -VV --output-on-error -j
ctest -T Submit
3 changes: 2 additions & 1 deletion WATCHME.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
|f j| [![f j](https://github.com/hyoklee/hdf4/actions/workflows/f-j.yml/badge.svg)](https://github.com/hyoklee/hdf4/actions/workflows/f-j.yml) [![arm64 auto f j](https://github.com/hyoklee/hdf4/actions/workflows/arm64-auto-f-j.yml/badge.svg)](https://github.com/hyoklee/hdf4/actions/workflows/arm64-auto-f-j.yml) [![mac14 f j](https://github.com/hyoklee/hdf4/actions/workflows/mac14-f-j.yml/badge.svg)](https://github.com/hyoklee/hdf4/actions/workflows/mac14-f-j.yml) [![mac14 auto clang17 f j ](https://github.com/hyoklee/hdf4/actions/workflows/mac14-auto-clang17-f-j.yml/badge.svg)](https://github.com/hyoklee/hdf4/actions/workflows/mac14-auto-clang17-f-j.yml) [![mac14 auto clang17 f j sh](https://github.com/hyoklee/hdf4/actions/workflows/mac14-auto-clang17-f-j-sh.yml/badge.svg)](https://github.com/hyoklee/hdf4/actions/workflows/mac14-auto-clang17-f-j-sh.yml) |
|f sh| [![lin auto aocc f sh](https://github.com/hyoklee/hdf4/actions/workflows/lin-auto-aocc-f-sh.yml/badge.svg)](https://github.com/hyoklee/hdf4/actions/workflows/lin-auto-aocc-f-sh.yml) [![lin auto nvhpc f sh](https://github.com/hyoklee/hdf4/actions/workflows/lin-auto-nvhpc-f-sh.yml/badge.svg)](https://github.com/hyoklee/hdf4/actions/workflows/lin-auto-nvhpc-f-sh.yml) |
|j| [![j](https://github.com/hyoklee/hdf4/actions/workflows/j.yml/badge.svg)](https://github.com/hyoklee/hdf4/actions/workflows/j.yml)|
![reology](https://repology.org/badge/vertical-allrepos/hdf.svg?header=hdf)

![repology](https://repology.org/badge/vertical-allrepos/hdf.svg?header=hdf)

0 comments on commit 07a8cbe

Please sign in to comment.