build.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. name: navicat-keygen builds
  2. on: workflow_dispatch
  3. jobs:
  4. navicat-keygen-x86:
  5. runs-on: windows-latest
  6. steps:
  7. - name: Install dependencies
  8. shell: pwsh
  9. run: |
  10. pushd .
  11. cd ${env:VCPKG_INSTALLATION_ROOT}
  12. git pull
  13. vcpkg install openssl:x86-windows-static
  14. vcpkg install unicorn:x86-windows-static
  15. vcpkg install fmt:x86-windows-static
  16. vcpkg install rapidjson:x86-windows-static
  17. vcpkg install keystone:x86-windows-static
  18. popd
  19. - name: Clone source
  20. uses: actions/checkout@v2
  21. - name: Add msbuild to PATH
  22. uses: microsoft/setup-msbuild@v1.1
  23. - name: Build project
  24. run: |
  25. vcpkg integrate install
  26. msbuild navicat-keygen.sln /p:Configuration=Release /p:Platform=x86
  27. - name: Upload artifacts
  28. uses: actions/upload-artifact@v2
  29. with:
  30. name: navicat-keygen-x86.zip
  31. path: bin/x86-Release/*.exe
  32. navicat-keygen-x64:
  33. runs-on: windows-latest
  34. steps:
  35. - name: Install dependencies
  36. run: |
  37. pushd .
  38. cd ${env:VCPKG_INSTALLATION_ROOT}
  39. git pull
  40. vcpkg install openssl:x64-windows-static
  41. vcpkg install unicorn:x64-windows-static
  42. vcpkg install fmt:x64-windows-static
  43. vcpkg install rapidjson:x64-windows-static
  44. vcpkg install keystone:x64-windows-static
  45. popd
  46. - name: Clone source
  47. uses: actions/checkout@v2
  48. - name: Add msbuild to PATH
  49. uses: microsoft/setup-msbuild@v1.1
  50. - name: Build project
  51. run: |
  52. vcpkg integrate install
  53. msbuild navicat-keygen.sln /p:Configuration=Release /p:Platform=x64
  54. - name: Upload artifacts
  55. uses: actions/upload-artifact@v2
  56. with:
  57. name: navicat-keygen-x64.zip
  58. path: bin/x64-Release/*.exe