Skip to content

Commit

Permalink
Build with Cygwin via GitHub Actions [skip travis] [skip cirrus] [ski…
Browse files Browse the repository at this point in the history
…p appveyor]
  • Loading branch information
tbeu committed Mar 12, 2024
1 parent 3e2ac18 commit 2b07d01
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 3 deletions.
47 changes: 45 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ jobs:
"$MATDUMP" -V
build-openbsd:
runs-on: ubuntu-latest
name: openbsd-clang
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -120,8 +120,8 @@ jobs:
./build/matdump -v -f whos ./share/test_file.mat
build-solaris:
runs-on: ubuntu-latest
name: solaris-gcc
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -151,3 +151,46 @@ jobs:
./build/matdump -v ./share/test_file.mat
./build/matdump -v -f whos ./share/test_file.mat
build-cygwin:
name: ${{ matrix.toolchain }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
toolchain:
- windows-cygwin
configuration:
- Release
include:
- toolchain: windows-cygwin
os: windows-latest
compiler: gcc
steps:
- name: Set git to use LF
run: git config --global core.autocrlf input
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 5
- name: Setup cygwin
uses: cygwin/cygwin-install-action@master
with:
packages: >-
cmake
gcc-core
libhdf5-devel
make
ninja
zlib-devel
- name: Configure
run: |
export PATH=/usr/bin:$PATH
cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DMATIO_SHARED=OFF -G Ninja
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}'
env:
CYGWIN_NOWINPATH: 1
- name: Build with ${{ matrix.compiler }}
run: |
export PATH=/usr/bin:$PATH
cmake --build build -- -j8
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}'
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ endif()

project(matio
VERSION 1.5.26
LANGUAGES C CXX
LANGUAGES C
)

string(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UPPER)
Expand Down

0 comments on commit 2b07d01

Please sign in to comment.