Skip to content

Commit

Permalink
Try Solaris and CygWin in CI [skip travis] [skip cirrus] [skip appveyor]
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeu committed Feb 9, 2024
1 parent 7789bde commit 9dd5727
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 2 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,65 @@ jobs:
./build/matdump -d ./share/test_file.mat structure
./build/matdump -v ./share/test_file.mat
./build/matdump -v -f whos ./share/test_file.mat
build-solaris:
runs-on: ubuntu-latest
name: solaris-gcc
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 5
- name: Test with gcc
uses: vmactions/solaris-vm@v1
with:
release: 11.4
usesh: true
copyback: false
prepare: |
set -e
pkg install cmake gcc
run: |
set -e
mkdir build
cmake -S . -Bbuild -DCMAKE_BUILD_TYPE=Release -DMATIO_SHARED=OFF -DMATIO_MAT73=OFF
cmake --build build -- -j8
./build/test_snprintf
./build/test_mat -H
./build/test_mat -L
./build/test_mat -V
./build/matdump -v -H
./build/matdump -V
./build/matdump -d ./share/test_file.mat structure
./build/matdump -v ./share/test_file.mat
./build/matdump -v -f whos ./share/test_file.mat
build-cygwin:
runs-on: windows-latest
name: windows-cygwin
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 5
- name: Setup Cygwin environment
uses: egor-tensin/setup-cygwin@v4
with:
packages: cmake gcc-g++ zlib-devel
- name: Configure Release
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DMATIO_SHARED=OFF -DMATIO_MAT73=OFF
- name: Build with ${{ matrix.compiler }}
run: |
cmake --build build -- -j8
- name: Test
run: |
./build/test_snprintf
./build/test_mat -H
./build/test_mat -L
./build/test_mat -V
./build/matdump -v -H
./build/matdump -V
./build/matdump -d ./share/test_file.mat structure
./build/matdump -v ./share/test_file.mat
./build/matdump -v -f whos ./share/test_file.mat
2 changes: 1 addition & 1 deletion getopt/getopt.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#ifndef _GETOPT_H_
#define _GETOPT_H_

#if !defined(_WIN32) && !defined(_WIN64)
#if !(defined(_WIN32) || defined(_WIN64) || defined(__SVR4) || defined(__svr4__))
# include <sys/cdefs.h>
#endif

Expand Down
2 changes: 1 addition & 1 deletion getopt/getopt_long.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#if !defined(_WIN32) && !defined(_WIN64)
#if !(defined(_WIN32) || defined(_WIN64) || defined(__SVR4) || defined(__svr4__))
# include <sys/cdefs.h>
# include <err.h>
#else
Expand Down

0 comments on commit 9dd5727

Please sign in to comment.