name: Build macOS on: workflow_dispatch: push: tags: - 'v*' jobs: build: runs-on: macos-14 timeout-minutes: 30 steps: - name: Checkout uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: 22 cache: npm - name: Install dependencies run: npm ci - name: Fetch luatos-cli (universal) run: npm run fetch:cli - name: Build unsigned DMG env: CSC_IDENTITY_AUTO_DISCOVERY: 'false' run: npm run dist:mac - name: Upload artifacts uses: actions/upload-artifact@v4 with: name: LuatOS-Flasher-macOS path: | dist/*.dmg dist/*.zip if-no-files-found: error # For signed + notarized releases, add Developer ID secrets and run # `npm run dist:mac:signed` with CSC_LINK / CSC_KEY_PASSWORD, # then notarize with `xcrun notarytool submit ... --wait`.