build.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. name: navicat-keygen builds
  2. on: [push]
  3. jobs:
  4. navicat-keygen-x86:
  5. runs-on: windows-latest
  6. if: "startsWith(github.event.head_commit.message, '[build]')"
  7. steps:
  8. - name: Install dependencies
  9. run: |
  10. vcpkg install fmt:x86-windows-static
  11. vcpkg install openssl:x86-windows-static
  12. vcpkg install rapidjson:x86-windows-static
  13. vcpkg install keystone:x86-windows-static
  14. vcpkg install unicorn:x86-windows-static
  15. - name: Clone source
  16. uses: actions/checkout@v2
  17. - name: Add msbuild to PATH
  18. uses: microsoft/setup-msbuild@v1.1
  19. - name: Build project
  20. run: |
  21. vcpkg integrate install
  22. msbuild navicat-keygen.sln /p:Configuration=Release /p:Platform=x86
  23. - name: Upload artifacts
  24. uses: actions/upload-artifact@v2
  25. with:
  26. name: navicat-keygen-x86.zip
  27. path: bin/x86-Release/*.exe
  28. navicat-keygen-x64:
  29. runs-on: windows-latest
  30. if: "startsWith(github.event.head_commit.message, '[build]')"
  31. steps:
  32. - name: Install dependencies
  33. run: |
  34. vcpkg install fmt:x64-windows-static
  35. vcpkg install openssl:x64-windows-static
  36. vcpkg install rapidjson:x64-windows-static
  37. vcpkg install keystone:x64-windows-static
  38. vcpkg install unicorn:x64-windows-static
  39. - name: Clone source
  40. uses: actions/checkout@v2
  41. - name: Add msbuild to PATH
  42. uses: microsoft/setup-msbuild@v1.1
  43. - name: Build project
  44. run: |
  45. vcpkg integrate install
  46. msbuild navicat-keygen.sln /p:Configuration=Release /p:Platform=x64
  47. - name: Upload artifacts
  48. uses: actions/upload-artifact@v2
  49. with:
  50. name: navicat-keygen-x64.zip
  51. path: bin/x64-Release/*.exe