windows-installer.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. name: Windows Installer
  2. # Build the Windows installer .exe.
  3. #
  4. # Triggers:
  5. # - Tag push matching v* (release builds, uploaded as a release asset)
  6. # - Manual dispatch (for testing the build pipeline)
  7. #
  8. # The installer is unsigned until SignPath OSS approval lands. Once it
  9. # does, add the SignPath GitHub Action between the ISCC step and the
  10. # upload step.
  11. on:
  12. push:
  13. tags:
  14. - 'v*'
  15. workflow_dispatch:
  16. jobs:
  17. build:
  18. runs-on: windows-latest
  19. timeout-minutes: 30
  20. steps:
  21. - name: Checkout
  22. uses: actions/checkout@v4
  23. - name: Setup Python
  24. uses: actions/setup-python@v5
  25. with:
  26. python-version: '3.13'
  27. - name: Setup Node.js
  28. uses: actions/setup-node@v4
  29. with:
  30. node-version: '22'
  31. - name: Install Inno Setup
  32. run: |
  33. choco install innosetup --version=6.2.2 --no-progress -y
  34. shell: pwsh
  35. - name: Stage installer artifacts
  36. working-directory: installers/windows
  37. run: python build.py
  38. shell: pwsh
  39. - name: Compile installer (ISCC)
  40. working-directory: installers/windows
  41. run: |
  42. & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" bambuddy.iss
  43. shell: pwsh
  44. - name: Upload installer artifact
  45. uses: actions/upload-artifact@v4
  46. with:
  47. name: bambuddy-windows-installer
  48. path: installers/windows/build/output/*.exe
  49. if-no-files-found: error
  50. - name: Attach installer to release
  51. if: startsWith(github.ref, 'refs/tags/v')
  52. uses: softprops/action-gh-release@v2
  53. with:
  54. files: installers/windows/build/output/*.exe
  55. fail_on_unmatched_files: true