Skip to content

Commit e227115

Browse files
committed
Add MSVC test runner.
1 parent 7f84042 commit e227115

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

‎.github/workflows/continuous-integration.yml‎

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,39 @@
11
name: Tests
22
on: [push, pull_request]
33
jobs:
4-
windows_test:
4+
windows_msvc_test:
5+
name: Windows (MSVC) tests
6+
runs-on: windows-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v1
10+
with:
11+
fetch-depth: 1
12+
- name: Install vcpkg
13+
shell: cmd
14+
run: |
15+
git clone https://github.com/microsoft/vcpkg.git
16+
cd vcpkg
17+
bootstrap-vcpkg.bat
18+
- name: Install Dependencies
19+
shell: cmd
20+
run: |
21+
cd vcpkg
22+
vcpkg.exe install bzip2 freetype[core] libflac libjpeg-turbo libogg libpng libtheora libvorbis libwebp[core] minimp3 openal-soft opus opusfile physfs zlib directxsdk
23+
- name: Configure
24+
shell: cmd
25+
run: |
26+
set VCPKG_ROOT=${{ github.workspace }}/vcpkg
27+
set PATH=%VCPKG_ROOT%;%PATH%
28+
mkdir build
29+
cd build
30+
cmake .. -DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%/scripts/buildsystems/vcpkg.cmake -DWANT_DOCS=off -DSHARED=off -DD3DX9_INCLUDE_DIR=%VCPKG_ROOT%/installed/x64-windows/include/directxsdk -DD3DX9_LIBRARY=%VCPKG_ROOT%/installed/x64-windows/lib/d3dx9.lib
31+
- name: Build
32+
shell: cmd
33+
run: |
34+
cd build
35+
cmake --build . --config RelWithDebInfo
36+
windows_msys2_test:
537
name: Windows (MSYS2) tests
638
runs-on: windows-latest
739
steps:

0 commit comments

Comments
 (0)