From b56dddf2a1795708dddb4b28e55b9c28eba6cd3b Mon Sep 17 00:00:00 2001 From: tbeu Date: Sat, 17 Aug 2024 10:37:18 +0200 Subject: [PATCH] Run install step via GitHub Actions --- .github/workflows/checkCI.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/checkCI.yml b/.github/workflows/checkCI.yml index 623eb67..e647de8 100644 --- a/.github/workflows/checkCI.yml +++ b/.github/workflows/checkCI.yml @@ -62,12 +62,23 @@ jobs: cmake --build build -- -j8 fi - name: Run tests - run: ctest --test-dir build --build-config ${{ matrix.configuration }} --verbose + run: ctest --no-tests=error --test-dir build --build-config ${{ matrix.configuration }} --verbose + - name: Install + run: | + if [ "${{ matrix.compiler }}" == "msvc" ]; then + cmake --build build --target install --config ${{ matrix.configuration }} + else + cmake --build build --target install + fi build_cmake_windows-cygwin: name: build_cmake_windows-cygwin runs-on: windows-latest timeout-minutes: 5 + strategy: + matrix: + configuration: + - Debug steps: - name: Set git to use LF run: git config --global core.autocrlf input @@ -86,7 +97,7 @@ jobs: - name: Configure run: | export PATH=/usr/bin:$PATH - cmake -S "$(cygpath ${SRCDIR})" -B build -DMODELICA_UTILITIES_INCLUDE_DIR="$(cygpath ${TESTDIR})" -DBUILD_TESTING=ON -DMODELICA_DEBUG_TIME_EVENTS=ON -DCMAKE_BUILD_TYPE=Debug -G Ninja + cmake -S "$(cygpath ${SRCDIR})" -B build -DMODELICA_UTILITIES_INCLUDE_DIR="$(cygpath ${TESTDIR})" -DBUILD_TESTING=ON -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 @@ -100,7 +111,12 @@ jobs: - name: Run tests run: | export PATH=/usr/bin:/usr/local/bin:$PATH - ctest --test-dir build --build-config Debug --verbose + ctest --no-tests=error --test-dir build --build-config ${{ matrix.configuration }} --verbose + shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}' + - name: Install + run: | + export PATH=/usr/bin:$PATH + cmake --build build --target install --config ${{ matrix.configuration }} shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}' html_documentation_checks: