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 fd1c4dd
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ 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
deps: |
sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf
pacman --noconfirm -Syyu cmake gcc git make mingw-w64 wine
- type: mingw
arch: x86
Expand All @@ -47,17 +48,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 +76,11 @@ 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: |
wine ./build/tests/lime-tests.exe

0 comments on commit fd1c4dd

Please sign in to comment.