-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (57 loc) · 1.79 KB
/
build-macos.yml
File metadata and controls
66 lines (57 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: macOS build
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-macos:
runs-on: macos-15
strategy:
fail-fast: false
matrix:
arch: [arm64, x64]
env:
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Restore Electron caches
uses: actions/cache@v4
with:
path: |
${{ runner.temp }}/electron
${{ runner.temp }}/electron-builder
key: ${{ runner.os }}-electron-${{ matrix.arch }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-electron-${{ matrix.arch }}-
- name: Install dependencies for the build
run: npm ci
- name: Build renderer and main bundles
run: npm run build
- name: Package macOS build (${{ matrix.arch }})
run: |
npx electron-builder build --mac --${{ matrix.arch }} --publish never -c.mac.identity=null
env:
npm_config_arch: ${{ matrix.arch }}
- name: Upload artifacts (x64, arm64)
if: matrix.arch == 'x64'
uses: actions/upload-artifact@v4
with:
name: mac-x64-arm64
path: |
release/build/vde-dataset-viewer-[0-9]*.[0-9]*.[0-9]*.dmg
release/build/vde-dataset-viewer-[0-9]*.[0-9]*.[0-9]*.dmg.blockmap
release/build/latest-mac.yml