Skip to content

Commit 1ee7ddb

Browse files
ci(mac): build both architectures in a single job for merged latest-mac.yml (#823)
1 parent a43b850 commit 1ee7ddb

2 files changed

Lines changed: 7 additions & 14 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ jobs:
2020
strategy:
2121
matrix:
2222
include:
23-
- os: macos-15-intel
24-
platform: mac
25-
arch: x64
23+
# Обе архитектуры macOS собираются одной джобой: раздельные джобы
24+
# затирали latest-mac.yml друг друга, ломая автообновление.
2625
- os: macos-15
2726
platform: mac
28-
arch: arm64
2927
- os: windows-latest
3028
platform: win
3129
- os: ubuntu-latest
@@ -51,17 +49,12 @@ jobs:
5149
- name: Install dependencies
5250
run: pnpm install
5351

54-
- name: Rebuild native dependencies (macOS)
55-
if: matrix.platform == 'mac'
56-
run: pnpm run rebuild --arch ${{ matrix.arch }}
57-
58-
- name: Rebuild native dependencies (other platforms)
59-
if: matrix.platform != 'mac'
52+
- name: Rebuild native dependencies
6053
run: pnpm run rebuild
6154

6255
- name: Build application (macOS)
6356
if: matrix.platform == 'mac'
64-
run: pnpm run build:${{ matrix.platform }}:${{ matrix.arch }}
57+
run: pnpm run build:mac
6558
env:
6659
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6760
CSC_LINK: ${{ secrets.CSC_LINK }}
@@ -79,15 +72,15 @@ jobs:
7972
- name: Upload artifacts
8073
uses: actions/upload-artifact@v4
8174
with:
82-
name: masscode-${{ matrix.platform }}-${{ matrix.arch }}-${{ github.ref_name || inputs.tag }}
75+
name: masscode-${{ matrix.platform }}-${{ github.ref_name || inputs.tag }}
8376
path: |
8477
dist/*.dmg
78+
dist/*.zip
8579
dist/*.pkg
8680
dist/*.exe
8781
dist/*.msi
8882
dist/*.AppImage
8983
dist/*.snap
90-
!dist/*-sponsored.*
9184
!dist/*.yml
9285
!dist/*.blockmap
9386
if-no-files-found: warn

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"dev:main": "nodemon",
1818
"dev:start": "wait-on tcp:5177 build/main/index.js && cross-env NODE_ENV=development DEV_PORT=5177 electronmon .",
1919
"build": "vite build && npm run build:main && electron-builder",
20-
"build:mac": "vite build && npm run build:main && npm run build:mac:x64 && npm run build:mac:arm64",
20+
"build:mac": "vite build && npm run build:main && electron-builder --mac --x64 --arm64",
2121
"build:mac:x64": "vite build && npm run build:main && electron-builder --mac --x64",
2222
"build:mac:arm64": "vite build && npm run build:main && electron-builder --mac --arm64",
2323
"build:win": "vite build && npm run build:main && electron-builder --win --x64",

0 commit comments

Comments
 (0)