]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Add CI support for Windows.
authorSadie Powell <sadie@witchery.services>
Sun, 6 Jun 2021 23:25:24 +0000 (00:25 +0100)
committerSadie Powell <sadie@witchery.services>
Mon, 7 Jun 2021 04:48:56 +0000 (05:48 +0100)
.github/workflows/ci-windows.yml [new file with mode: 0644]

diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml
new file mode 100644 (file)
index 0000000..8c31534
--- /dev/null
@@ -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