[CI] Adding MSVC build to CI check with Appveyor #12613

issue NicolasDorier opened this issue on March 6, 2018
  1. NicolasDorier commented at 12:48 PM on March 6, 2018: contributor

    Credit to @sipsorcery for his hard work on making bitcoin compile in Visual Studio.

    On top of this, he managed to integrate Visual Studio to integration server AppVeyor. (Travis does not support Windows for now as far as I know)

    You can see it in action here: https://ci.appveyor.com/project/sipsorcery/bitcoin this is done on top of this PR.

    He shared the following config file for the CI:

    version: 1.0.{build}
    branches:
      only:
      - master
    skip_tags: true
    image: Visual Studio 2017
    configuration: Release
    platform: x64
    environment:
      EMAIL: aaron@sipsorcery.com
      APPVEYOR_SAVE_CACHE_ON_ERROR: true
      DUMMY1: dummy
    cache: C:\Tools\vcpkg\installed
    before_build:
    - ps: >-
        dir c:\tools\vcpkg
    
        dir c:\tools\vcpkg\installed
    
    
        vcpkg install boost:x64-windows-static
    
        vcpkg install libevent:x64-windows-static
    
        vcpkg install openssl:x64-windows-static
    
        vcpkg install zeromq:x64-windows-static
    
        vcpkg install berkeleydb:x64-windows-static
    
        vcpkg install secp256k1:x64-windows-static
    
        vcpkg install leveldb:x64-windows-static
    
    
        git pull origin pull/11526/head
         Invoke-WebRequest -Uri https://gist.githubusercontent.com/sipsorcery/0ce4b529ebd3bda784ad71c5702cae88/raw/6732cef26554fd016a154ed852f5dbac8fbf4199/bitcoin-config.h -OutFile src\config\bitcoin-config.h
    build:
      project: build_msvc\bitcoin.sln
      parallel: true
      verbosity: minimal
    artifacts:
    - path: build_msvc\x64\Release\*.exe
      name: Executables
    

    Note that the download of bitcoin-config.h will likely go away and be part of the build.

  2. fanquake added the label Windows on Mar 6, 2018
  3. MarcoFalke added the label Tests on Mar 6, 2018
  4. sipsorcery commented at 3:53 AM on March 7, 2018: member

    Now slightly simplified with @NicolasDorier changes to VS project files.

    version: 1.0.{build}
    branches:
      only:
      - master
    skip_tags: true
    image: Visual Studio 2017
    configuration: Release
    platform: x64
    environment:
      EMAIL: aaron@sipsorcery.com
      APPVEYOR_SAVE_CACHE_ON_ERROR: true
      DUMMY1: dummy
    cache: C:\Tools\vcpkg\installed
    before_build:
    - cmd: >-
        dir c:\tools\vcpkg
    
        dir c:\tools\vcpkg\installed
    
    
        vcpkg install boost:x64-windows-static
    
        vcpkg install libevent:x64-windows-static
    
        vcpkg install openssl:x64-windows-static
    
        vcpkg install zeromq:x64-windows-static
    
        vcpkg install berkeleydb:x64-windows-static
    
        vcpkg install secp256k1:x64-windows-static
    
        vcpkg install leveldb:x64-windows-static
    
    
        git pull origin pull/11526/head
    build:
      project: build_msvc\bitcoin.sln
      parallel: true
      verbosity: minimal
    artifacts:
    - path: build_msvc\x64\Release\*.exe
      name: Executables
    
  5. MarcoFalke commented at 4:44 PM on March 13, 2018: member

    It seems they are not running any tests at all

  6. NicolasDorier commented at 8:43 AM on March 14, 2018: contributor

    No, this would be done in a second step (as I saw you worked to make things runnable on windows)

    Having it only compiling is already giving us good feedback on constructs which might break on windows though.

  7. NicolasDorier closed this on Aug 14, 2018

  8. ken2812221 referenced this in commit e393a18b51 on Aug 15, 2018
  9. linuxsh2 referenced this in commit b70411b627 on Jul 29, 2021
  10. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 12:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me