summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-06-07 00:25:24 +0100
committerSadie Powell <sadie@witchery.services>2021-06-07 05:48:56 +0100
commit7ae94300b62ebf0740e3a37b1a9ecd604887a3c5 (patch)
tree86d8bdf6660980bc9d09ffbc1d489c15199ae658
parent71841b747d41a8efca1998aa950c89b034f8d46d (diff)
Add CI support for Windows.
-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