Skip to content

Commit

Permalink
Build with Cygwin via GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Mar 12, 2024
1 parent 3342f13 commit e81327c
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/checkCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,56 @@ jobs:
- name: Run tests
run: ctest --test-dir build --build-config ${{ matrix.configuration }} --verbose

external_c_checks_cmake_cygwin:
name: external_c_checks_cmake_${{ matrix.toolchain }}
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
toolchain:
- windows-cygwin
configuration:
- Debug
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 code
uses: actions/checkout@v4
with:
fetch-depth: 5
- name: Setup cygwin
uses: cygwin/cygwin-install-action@master
with:
packages: >-
cmake
gcc-core
make
ninja
- name: Configure
run: |
export PATH=/usr/bin:$PATH
cmake -S "$(cygpath ${SRCDIR})" -B build -DMODELICA_UTILITIES_INCLUDE_DIR="$(cygpath ${TESTDIR})" -DMODELICA_DEBUG_TIME_EVENTS=ON -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -G Ninja
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}'
env:
CYGWIN_NOWINPATH: 1
SRCDIR: ${{ github.workspace }}/Modelica/Resources/BuildProjects/CMake
TESTDIR: ${{ github.workspace }}/.CI/Test
- 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}'
- name: Run tests
run: |
export PATH=/usr/bin:$PATH
ctest --test-dir build --build-config ${{ matrix.configuration }} --verbose
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}'

html_documentation_checks:
timeout-minutes: 5
runs-on: ubuntu-latest
Expand Down

0 comments on commit e81327c

Please sign in to comment.