third-party-RustDeskTempTopMostWindow.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. name: build RustDeskTempTopMostWindow
  2. on:
  3. workflow_call:
  4. inputs:
  5. upload-artifact:
  6. type: boolean
  7. default: true
  8. target:
  9. description: 'Target'
  10. required: true
  11. type: string
  12. default: 'windows-2022'
  13. configuration:
  14. description: 'Configuration'
  15. required: true
  16. type: string
  17. default: 'Release'
  18. platform:
  19. description: 'Platform'
  20. required: true
  21. type: string
  22. default: 'x64'
  23. target_version:
  24. description: 'TargetVersion'
  25. required: true
  26. type: string
  27. default: 'Windows10'
  28. env:
  29. project_path: WindowInjection/WindowInjection.vcxproj
  30. jobs:
  31. build-RustDeskTempTopMostWindow:
  32. runs-on: ${{ inputs.target }}
  33. strategy:
  34. fail-fast: false
  35. env:
  36. build_output_dir: RustDeskTempTopMostWindow/WindowInjection/${{ inputs.platform }}/${{ inputs.configuration }}
  37. steps:
  38. - name: Add MSBuild to PATH
  39. uses: microsoft/setup-msbuild@v2
  40. - name: Download the source code
  41. run: |
  42. git clone https://github.com/rustdesk-org/RustDeskTempTopMostWindow RustDeskTempTopMostWindow
  43. # Build. commit 53b548a5398624f7149a382000397993542ad796 is tag v0.3
  44. - name: Build the project
  45. run: |
  46. cd RustDeskTempTopMostWindow && git checkout 53b548a5398624f7149a382000397993542ad796
  47. msbuild ${{ env.project_path }} -p:Configuration=${{ inputs.configuration }} -p:Platform=${{ inputs.platform }} /p:TargetVersion=${{ inputs.target_version }}
  48. - name: Archive build artifacts
  49. uses: actions/upload-artifact@master
  50. if: ${{ inputs.upload-artifact }}
  51. with:
  52. name: topmostwindow-artifacts
  53. path: |
  54. ./${{ env.build_output_dir }}/WindowInjection.dll