Skip to content

Commit

Permalink
feat(ci): test wine
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed May 20, 2024
1 parent ddcc20f commit 839a509
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ jobs:
deps: sudo dnf install -y git cmake gcc gcc-c++ ninja-build

- type: mingw
run-tests: false
container: archlinux:base-devel
deps: pacman --noconfirm -Syu cmake gcc git make mingw-w64
container: archlinux:multilib-devel
deps: pacman --noconfirm -Syyu cmake gcc git make mingw-w64 wine

- type: mingw
arch: x86
Expand All @@ -47,17 +46,15 @@ jobs:
arch: x64
cmake_args: -T ClangCL -A x64

- type: windows-clang
run-tests: false
config: Release
exclude:
- type: linux
arch: x86

- type: windows
run-tests: false
config: Release

exclude:
- type: linux
arch: x86
- type: windows-clang
config: Release

runs-on: ${{ contains(matrix.type, 'windows') && 'windows-latest' || 'ubuntu-latest' }}
container: ${{ matrix.container }}
Expand All @@ -77,6 +74,12 @@ jobs:
cmake --build build --config ${{ matrix.config }}
- name: 🔬 Run Tests
if: ${{ matrix.run-tests != false }}
if: ${{ matrix.type != 'mingw' }}
run: |
ctest --test-dir build/tests -C ${{ matrix.config }} --verbose
- name: 🔬 Run Tests (Wine)
if: ${{ matrix.type == 'mingw' }}
run: |
mkdir prefix
WINEPREFIX="$(pwd)/prefix" wine ./build/tests/lime-tests.exe

0 comments on commit 839a509

Please sign in to comment.