summaryrefslogtreecommitdiff
path: root/.github/workflows/ci-windows.yml
blob: 8c3153468e367337cce2e0c4d75af90194d64bec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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