Skip to content

Commit

Permalink
refs modelica#4093 Also check in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Jan 26, 2024
1 parent 2632f21 commit a96ee8a
Showing 1 changed file with 60 additions and 6 deletions.
66 changes: 60 additions & 6 deletions .github/workflows/checkCI.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
name: CI

on: [pull_request]
on:
push:
pull_request:
workflow_dispatch:

jobs:
external_c_checks:
external_c_checks_autoconf:
name: external-c-checks-autoconf
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 5
- name: Build libraries
Expand All @@ -30,11 +35,54 @@ jobs:
env:
LIBDIR: linux64
CC: gcc

external_c_checks_cmake:
name: external-c-checks-cmake-${{ matrix.toolchain }}
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
matrix:
toolchain:
- linux-gcc
- macos-clang
- windows-msvc
configuration:
- Debug
include:
- toolchain: linux-gcc
os: ubuntu-latest
compiler: gcc
- toolchain: macos-clang
os: macos-latest
compiler: clang
- toolchain: windows-msvc
os: windows-latest
compiler: msvc
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 5
- name: Build libraries with ${{ matrix.compiler }}
run: |
cmake -S "${{ github.workspace }}/Modelica/Resources/BuildProjects/CMake" -B build -DMODELICA_UTILITIES_INCLUDE_DIR="${{ github.workspace }}/.CI/Test" -DBUILD_TESTING=ON
cmake --build build --config ${{ matrix.configuration }}
if: ${{ matrix.compiler }} == "msvc"
- name: Build libraries with ${{ matrix.compiler }}
run: |
cmake -S "${{ github.workspace }}/Modelica/Resources/BuildProjects/CMake" -B build -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DMODELICA_UTILITIES_INCLUDE_DIR="${{ github.workspace }}/.CI/Test" -DBUILD_TESTING=ON
cmake --build build
if: ${{ matrix.compiler }} != "msvc"
- name: Run tests
run: ctest --test-dir build --build-config ${{ matrix.configuration }} --verbose

html_documentation_checks:
name: html-documentation-checks
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 5
- name: Setup python environment
Expand Down Expand Up @@ -64,11 +112,14 @@ jobs:
echo "::add-matcher::./.github/checkTags.json"
python ./.CI/check_html.py checkTags ./
echo "::remove-matcher owner=checkTags::"
syntax_checks:
name: syntax-checks
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 5
- name: Get moparser
Expand All @@ -82,11 +133,14 @@ jobs:
echo "::add-matcher::./.github/moparser.json"
ModelicaSyntaxChecker/Linux64/moparser -v 3.4 -r Complex.mo Modelica ModelicaReference ModelicaServices ModelicaTest ModelicaTestConversion4.mo ModelicaTestOverdetermined.mo ObsoleteModelica4.mo
echo "::remove-matcher owner=moparser::"
deprecation_checks:
name: deprecation-checks
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 5
- name: Setup python environment
Expand Down

0 comments on commit a96ee8a

Please sign in to comment.