summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci-windows.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml
new file mode 100644
index 000000000..8c3153468
--- /dev/null
+++ b/.github/workflows/ci-windows.yml
@@ -0,0 +1,30 @@
+name: Windows CI
+on:
+ - pull_request
+ - push
+jobs:
+ build:
+ runs-on: windows-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Setup MSBuild
+ uses: microsoft/setup-msbuild@v1.0.2
+
+ - name: Setup Conan
+ uses: turtlebrowser/get-conan@v1.0
+
+ - name: Install libraries
+ working-directory: ${{ github.workspace }}/win/build
+ run: |
+ conan install ..
+
+ - name: Run CMake
+ working-directory: ${{ github.workspace }}/win/build
+ run: |
+ cmake -G "Visual Studio 16 2019" -A "x64" ..
+
+ - name: Build InspIRCd
+ working-directory: ${{ github.workspace }}/win/build
+ run: |
+ msbuild InspIRCd.sln /M:3 /P:Configuration=Release /P:Platform=x64 /T:ALL_BUILD