summaryrefslogtreecommitdiff
path: root/.github/workflows/ci-windows.yml
blob: a688327215d344fa5e9895cf2b4c12776ac04220 (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
31
32
33
34
35
name: Windows CI
on:
  pull_request:
  push:
  schedule:
    - cron: '0 0 * * 0'
jobs:
  build:
    if: "!contains(github.event.head_commit.message, '[skip windows ci]')"
    runs-on: windows-2019
    steps:
      - uses: actions/checkout@v3

      - name: Setup MSBuild
        uses: microsoft/setup-msbuild@v1.3

      - name: Setup Conan
        uses: turtlebrowser/get-conan@v1.2
        with:
          version: 1.59.0

      - name: Install libraries
        run: |
          conan install ${{ github.workspace }}\src\win32 --build=missing

      - name: Run CMake
        run: |
          mkdir ${{ github.workspace }}\build
          cd ${{ github.workspace }}\build
          cmake -A "x64" -G "Visual Studio 16 2019" ..

      - name: Build Anope
        working-directory: ${{ github.workspace }}\build
        run: |
          msbuild PACKAGE.vcxproj /M:3 /P:Configuration=Release /P:Platform=x64 /VERBOSITY:MINIMAL