Skip to content

Commit a5a5c90

Browse files
committed
Fix MinGW CI configuration
1 parent f9efdd9 commit a5a5c90

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/ci_tests.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212

13+
- name: Install MinGW toolchain
14+
shell: powershell
15+
run: |
16+
choco install mingw --yes --no-progress
17+
echo "C:\tools\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
18+
1319
- name: Create CMake cache
1420
run: |
15-
cmake -S . -B cmake-build-release -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles"
16-
cmake -S . -B cmake-build-debug -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles"
21+
cmake -S . -B cmake-build-release -DCMAKE_BUILD_TYPE=Release -G "MinGW Makefiles"
22+
cmake -S . -B cmake-build-debug -DCMAKE_BUILD_TYPE=Debug -G "MinGW Makefiles"
1723
1824
- name: Build main target
1925
shell: bash
@@ -27,14 +33,15 @@ jobs:
2733
2834
- name: Run program
2935
working-directory: .\cmake-build-release
36+
shell: bash
3037
run: |
31-
.\ovum.exe --help
38+
./ovum.exe --help
3239
3340
- name: Run tests
3441
working-directory: .\cmake-build-debug
42+
shell: bash
3543
run: |
36-
echo "Currently unable to run tests on Windows Latest MinGW. See https://gitmemories.com/cristianadam/HelloWorld/issues/12 and https://github.com/microsoft/vscode-cmake-tools/issues/2451"
37-
% .\ovum_tests.exe
44+
./ovum_tests.exe
3845
3946
build-matrix:
4047
name: Tests and application run on ${{ matrix.config.name }}

0 commit comments

Comments
 (0)