1
0

windows-check.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Windows Build Test
  2. on:
  3. push:
  4. branches: [ '*' ]
  5. pull_request:
  6. branches: [ '*' ]
  7. env:
  8. # Path to the solution file relative to the root of the project.
  9. SOLUTION_FILE_PATH: wolfssl64.sln
  10. # Configuration type to build.
  11. # You can convert this to a build matrix if you need coverage of multiple configuration types.
  12. # https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
  13. BUILD_CONFIGURATION: Release
  14. BUILD_PLATFORM: x64
  15. jobs:
  16. build:
  17. runs-on: windows-latest
  18. steps:
  19. - uses: actions/checkout@v2
  20. - name: Add MSBuild to PATH
  21. uses: microsoft/setup-msbuild@v1
  22. - name: Restore NuGet packages
  23. working-directory: ${{env.GITHUB_WORKSPACE}}
  24. run: nuget restore ${{env.SOLUTION_FILE_PATH}}
  25. - name: Build
  26. working-directory: ${{env.GITHUB_WORKSPACE}}
  27. # Add additional options to the MSBuild command line here (like platform or verbosity level).
  28. # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
  29. run: msbuild /m /p:PlatformToolset=v142 /p:Platform=${{env.BUILD_PLATFORM}} /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}