build-macos.yml 1018 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: Build macOS
  2. on:
  3. workflow_dispatch:
  4. push:
  5. tags:
  6. - 'v*'
  7. jobs:
  8. build:
  9. runs-on: macos-14
  10. timeout-minutes: 30
  11. steps:
  12. - name: Checkout
  13. uses: actions/checkout@v4
  14. - name: Setup Node.js
  15. uses: actions/setup-node@v4
  16. with:
  17. node-version: 22
  18. cache: npm
  19. - name: Install dependencies
  20. run: npm ci
  21. - name: Fetch luatos-cli (universal)
  22. run: npm run fetch:cli
  23. - name: Build unsigned DMG
  24. env:
  25. CSC_IDENTITY_AUTO_DISCOVERY: 'false'
  26. run: npm run dist:mac
  27. - name: Upload artifacts
  28. uses: actions/upload-artifact@v4
  29. with:
  30. name: LuatOS-Flasher-macOS
  31. path: |
  32. dist/*.dmg
  33. dist/*.zip
  34. if-no-files-found: error
  35. # For signed + notarized releases, add Developer ID secrets and run
  36. # `npm run dist:mac:signed` with CSC_LINK / CSC_KEY_PASSWORD,
  37. # then notarize with `xcrun notarytool submit ... --wait`.