Linux PyQt tray application to control OctoPrint instances
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

build.yml 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. name: Build Distribution Packages
  2. on: [push]
  3. jobs:
  4. build_mac:
  5. runs-on: macos-latest
  6. steps:
  7. - name: Checkout repository
  8. uses: actions/checkout@v2
  9. - name: Install Python Environment
  10. uses: actions/setup-python@v2
  11. with:
  12. python-version: 3.9
  13. - name: Install dependencies
  14. run: |
  15. python -m pip install --upgrade pip
  16. pip install PyQt5
  17. pip install py2app
  18. - name: Run Mac build
  19. run: |
  20. ./build_mac.sh
  21. - name: Archive build result artifacts
  22. uses: actions/upload-artifact@v2
  23. with:
  24. name: octotray_mac
  25. path: |
  26. ${{ github.workspace }}/build/dist/OctoTray_Mac.zip
  27. build_windows:
  28. runs-on: windows-latest
  29. steps:
  30. - name: Checkout repository
  31. uses: actions/checkout@v2
  32. - name: Install Python Environment
  33. uses: actions/setup-python@v2
  34. with:
  35. python-version: 3.7
  36. - name: Install dependencies
  37. run: |
  38. python -m pip install --upgrade pip
  39. pip install PyQt5
  40. pip install pyinstaller
  41. shell: bash
  42. - name: Run Windows build
  43. run: |
  44. ./build_win.sh
  45. shell: bash
  46. - name: Create archive of build results
  47. run: |
  48. powershell Compress-Archive build/dist/win build/dist/OctoTray_Win.zip
  49. - name: Archive build result artifacts
  50. uses: actions/upload-artifact@v2
  51. with:
  52. name: octotray_win
  53. path: |
  54. ${{ github.workspace }}/build/dist/OctoTray_Win.zip
  55. build_linux:
  56. runs-on: ubuntu-latest
  57. steps:
  58. - name: Checkout repository
  59. uses: actions/checkout@v2
  60. - name: Install Python Environment
  61. uses: actions/setup-python@v2
  62. with:
  63. python-version: 3.8
  64. - name: Install dependencies
  65. run: |
  66. python -m pip install --upgrade pip
  67. pip install PyQt5
  68. pip install pyinstaller
  69. - name: Run Linux build
  70. run: |
  71. ./build_linux.sh
  72. - name: Archive build result artifacts
  73. uses: actions/upload-artifact@v2
  74. with:
  75. name: octotray_linux
  76. path: |
  77. ${{ github.workspace }}/build/dist/OctoTray_Linux.zip