testing windows ci

This commit is contained in:
Jeremy Borgman
2020-09-10 14:38:03 -05:00
committed by borgmanJeremy
parent c3c5bd2501
commit c997666b0f

44
.github/workflows/cmake-windows.yml vendored Normal file
View File

@@ -0,0 +1,44 @@
name: Windows Build
on: [push, pull_request]
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Windows Latest MSVC", artifact: "Windows-MSVC.tar.xz",
os: windows-latest,
cc: "cl", cxx: "cl",
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
}
- {
name: "Windows Latest MinGW", artifact: "Windows-MinGW.tar.xz",
os: windows-latest,
cc: "gcc", cxx: "g++"
}
steps:
- uses: actions/checkout@v1
- name: Install Qt
uses: jurplel/install-qt-action@v2
- name: Configure
shell: powershell
run: |
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=Release ../
- name: Build
shell: powershell
run: |
cd build
cmake --build . --config Release