Skip to content

Commit

Permalink
Workflow (re)enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcothaller committed Nov 8, 2024
1 parent 42f6f8f commit f4e60c9
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,28 +60,27 @@ jobs:
& .\Slint-cpp-$env:SLINT_VERSION-win64.exe /S /D=c:\slint
Write-Output "SLINT_INSTALL_LOCATION=c:\slint" >> $env:GITHUB_ENV
# Tests build only on Linux right now
# Tests build
- name: Configure project
run: >
cmake -S . -B ./build -G Ninja
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DBUILD_TESTS=${{ matrix.os == 'Linux' && matrix.build_type == 'Debug'}}
-DBUILD_TESTS=${{ matrix.build_type == 'Debug'}}
-DCMAKE_PREFIX_PATH=${{ env.SLINT_INSTALL_LOCATION }}
- name: Build Project
run: cmake --build ./build

# Tests turned off due to linker errors on Windows
# - name: Run tests on Windows/macOS
# if: ${{ matrix.build_type == 'Debug' && runner.os != 'Linux' }}
# run: ctest --test-dir ./build -C ${{ matrix.build_type }} --output-on-failure
- name: Run tests on Windows/macOS
if: ${{ matrix.build_type == 'Debug' && runner.os != 'Linux' }}
run: ctest --test-dir ./build -C ${{ matrix.build_type }} --output-on-failure

# - name: Run tests on Linux
# if: ${{ matrix.build_type == 'Debug' && runner.os == 'Linux' }}
# run: ctest --test-dir ./build -C ${{ matrix.build_type }} --output-on-failure
- name: Run tests on Linux
if: ${{ matrix.build_type == 'Debug' && runner.os == 'Linux' }}
run: ctest --test-dir ./build -C ${{ matrix.build_type }} --output-on-failure

# - name: Read tests log when it fails
# uses: andstor/file-reader-action@v1
# if: ${{ failure() && matrix.build_type == 'Debug' }}
# with:
# path: "./build/Testing/Temporary/LastTest.log"
- name: Read tests log when it fails
uses: andstor/file-reader-action@v1
if: ${{ failure() && matrix.build_type == 'Debug' }}
with:
path: "./build/Testing/Temporary/LastTest.log"

0 comments on commit f4e60c9

Please sign in to comment.