From 60b6ff3fe9d858f2086ba54e029b5f7e6d1fa663 Mon Sep 17 00:00:00 2001 From: OpenClaw Bot Date: Sun, 15 Mar 2026 10:16:36 +0000 Subject: [PATCH] ci: add macOS arm64 workflow --- .gitea/workflows/electron-macos-arm64.yml | 51 +++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .gitea/workflows/electron-macos-arm64.yml diff --git a/.gitea/workflows/electron-macos-arm64.yml b/.gitea/workflows/electron-macos-arm64.yml new file mode 100644 index 0000000..80edb68 --- /dev/null +++ b/.gitea/workflows/electron-macos-arm64.yml @@ -0,0 +1,51 @@ +name: electron-macos-arm64 + +on: + push: + branches: [ main ] + tags: [ 'v*' ] + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + electron-macos-arm64: + runs-on: macos-arm64 + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install npm dependencies + run: | + set -eu + npm ci + + - name: Build macOS app bundle (arm64) + run: | + set -eu + npx electron-builder --mac zip --arm64 --publish never + + - name: Pack artifacts + run: | + set -eu + rm -rf artifacts + mkdir -p artifacts + found=0 + for f in dist/*.zip dist/*.dmg; do + if [ -f "$f" ]; then + cp "$f" "artifacts/" + found=1 + fi + done + [ "$found" -eq 1 ] || { echo "No macOS artifacts produced in dist/"; exit 1; } + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: electron_tray_demo-macos-arm64-run${{ github.run_number }} + path: artifacts/ + retention-days: 14