-
Notifications
You must be signed in to change notification settings - Fork 26
2927 lines (2627 loc) · 125 KB
/
Copy pathrelease.yml
File metadata and controls
2927 lines (2627 loc) · 125 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
skip_release:
description: 'Build artifacts only (no GitHub release)'
type: boolean
default: true
env:
PNPM_VERSION: '10.34.5'
GO_VERSION: '1.26.6'
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
# SR-007: least-privilege default for every job. Build jobs only need to read
# the repo + exchange artifacts. Jobs that publish override this with their
# own per-job `permissions:` (create-release → contents: write; GHCR pushes →
# packages: write; Tauri/MSI signing → id-token: write).
permissions:
contents: read
jobs:
build-api:
name: Build API
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Setup pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
with:
version: ${{ env.PNPM_VERSION }}
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
node-version-file: .node-version
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build API
run: pnpm build --filter=@breeze/api
- name: Upload API artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: api-dist
path: apps/api/dist
retention-days: 30
build-web:
name: Build Web
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Setup pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
with:
version: ${{ env.PNPM_VERSION }}
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
node-version-file: .node-version
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Get version from tag
id: web-version
run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
- name: Build Web
env:
PUBLIC_APP_VERSION: ${{ steps.web-version.outputs.version }}
run: pnpm build --filter=@breeze/web
- name: Upload Web artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: web-dist
path: apps/web/dist
retention-days: 30
build-agent:
name: Build Agent
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- goos: linux
goarch: amd64
suffix: ''
cgo: '0'
runner: ubuntu-latest
- goos: linux
goarch: arm64
suffix: ''
cgo: '0'
runner: ubuntu-latest
- goos: darwin
goarch: amd64
suffix: ''
cgo: '1'
runner: macos-latest
- goos: darwin
goarch: arm64
suffix: ''
cgo: '1'
runner: macos-latest
- goos: windows
goarch: amd64
suffix: '.exe'
cgo: '0'
runner: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Setup Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: agent/go.sum
- name: Download Go dependencies
working-directory: agent
run: go mod download
- name: Get version from tag
id: version
env:
REF_NAME: ${{ github.ref_name }}
run: echo "version=${REF_NAME#v}" >> "$GITHUB_OUTPUT"
- name: Build Agent
shell: bash
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: ${{ matrix.cgo }}
BUILD_VERSION: ${{ steps.version.outputs.version }}
# Allow weak-linking ScreenCaptureKit so the binary runs on macOS 12+
# where SCK doesn't exist (prevents dyld Symbol not found crash)
CGO_LDFLAGS_ALLOW: '-weak_framework|ScreenCaptureKit'
run: |
agent/scripts/build-edition.sh --edition self-host --component agent \
--goos "$GOOS" --goarch "$GOARCH" --version "$BUILD_VERSION" \
--out "breeze-agent-${GOOS}-${GOARCH}${{ matrix.suffix }}"
- name: Upload Agent artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-agent-${{ matrix.goos }}-${{ matrix.goarch }}
path: agent/breeze-agent-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.suffix }}
retention-days: 30
- name: Build breeze-backup
shell: bash
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: ${{ matrix.cgo }}
BUILD_VERSION: ${{ steps.version.outputs.version }}
CGO_LDFLAGS_ALLOW: '-weak_framework|ScreenCaptureKit'
run: |
agent/scripts/build-edition.sh --edition self-host --component backup \
--goos "$GOOS" --goarch "$GOARCH" --version "$BUILD_VERSION" \
--out "breeze-backup-${GOOS}-${GOARCH}${{ matrix.suffix }}"
- name: Upload breeze-backup artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-backup-${{ matrix.goos }}-${{ matrix.goarch }}
path: agent/breeze-backup-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.suffix }}
retention-days: 30
- name: Build breeze-watchdog
shell: bash
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: 0
BUILD_VERSION: ${{ steps.version.outputs.version }}
run: |
agent/scripts/build-edition.sh --edition self-host --component watchdog \
--goos "$GOOS" --goarch "$GOARCH" --version "$BUILD_VERSION" \
--out "breeze-watchdog-${GOOS}-${GOARCH}${{ matrix.suffix }}"
- name: Upload breeze-watchdog artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-watchdog-${{ matrix.goos }}-${{ matrix.goarch }}
path: agent/breeze-watchdog-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.suffix }}
retention-days: 30
- name: Build breeze-desktop-helper
if: matrix.goos == 'darwin'
shell: bash
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: ${{ matrix.cgo }}
BUILD_VERSION: ${{ steps.version.outputs.version }}
CGO_LDFLAGS_ALLOW: '-weak_framework|ScreenCaptureKit'
run: |
agent/scripts/build-edition.sh --edition self-host --component desktop-helper \
--goos "$GOOS" --goarch "$GOARCH" --version "$BUILD_VERSION" \
--out "breeze-desktop-helper-${GOOS}-${GOARCH}"
- name: Upload breeze-desktop-helper artifact
if: matrix.goos == 'darwin'
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-desktop-helper-${{ matrix.goos }}-${{ matrix.goarch }}
path: agent/breeze-desktop-helper-${{ matrix.goos }}-${{ matrix.goarch }}
retention-days: 30
# Regression guard (#2797): no shipped agent binary may contain
# plaintext threat-signature strings — AV engines flag them as malware
# (VT-confirmed Elastic Multi.EICAR on shipped exes). Scans every
# breeze-* binary this matrix leg produced (agent/backup/watchdog, plus
# desktop-helper on darwin); fails if the glob matches nothing so a
# renamed output cannot silently skip the scan.
- name: Scan built binaries for plaintext threat signatures (#2797)
run: |
shopt -s nullglob
bins=(agent/breeze-*-${{ matrix.goos }}-${{ matrix.goarch }}*)
if [ "${#bins[@]}" -eq 0 ]; then
echo "no built agent binaries matched agent/breeze-*-${{ matrix.goos }}-${{ matrix.goarch }}* — refusing to pass a vacuous scan" >&2
exit 1
fi
bash scripts/security/check-agent-binary-signatures.sh "${bins[@]}"
build-windows-unsigned:
name: Build Windows Agent Binaries (unsigned)
if: >-
github.ref_type == 'tag'
&& startsWith(github.ref, 'refs/tags/v')
runs-on: windows-latest
needs: [build-agent]
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Setup Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: agent/go.sum
- name: Download Go dependencies
working-directory: agent
shell: pwsh
run: go mod download
- name: Get version from tag
id: version
shell: pwsh
env:
REF_NAME: ${{ github.ref_name }}
run: |
$version = $env:REF_NAME.Substring(1)
"version=$version" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
- name: Build Windows resources and binary
shell: pwsh
env:
BUILD_VERSION: ${{ steps.version.outputs.version }}
run: |
# Fail-fast: a non-terminating PowerShell error (e.g. a missing
# toolchain) otherwise lets a later `go build` proceed against
# stale or missing resources, and a non-zero `go build` exit code
# is silently ignored unless we check $LASTEXITCODE — that
# combination shipped a release once where the agent .exe was
# absent from dist\ and the installer step packaged whatever was
# left from a previous run.
$ErrorActionPreference = "Stop"
New-Item -Path dist -ItemType Directory -Force | Out-Null
go install github.com/tc-hib/go-winres@v0.3.3
$winres = "$env:USERPROFILE\go\bin\go-winres.exe"
# Embed VERSIONINFO + manifest + icon resources into every Windows
# binary we ship. Without an embedded FileVersion, MSI treats our
# exes as "unversioned" and applies the "preserve user-modified
# unversioned files" rule, which surfaces in install.log as
# `File: ...\breeze-agent.exe; Won't Overwrite` whenever an existing
# binary at the install path has been modified (#944).
#
# We use `go-winres simply` (CLI args) rather than `make` + JSON
# because .ico files work via --icon in simply mode but not in
# JSON-mode RT_GROUP_ICON entries (go-winres v0.3.x rejects them
# with "image: unknown format"). Each invocation is checked for
# $LASTEXITCODE so a tooling failure aborts the release.
Push-Location agent\resources
& $winres simply --arch amd64 --no-suffix --icon icon.ico --admin `
--file-version $env:BUILD_VERSION --product-version $env:BUILD_VERSION `
--product-name "Breeze RMM Agent" --file-description "Breeze RMM Agent" `
--copyright "Copyright (c) Breeze RMM" --original-filename "breeze-agent.exe" `
--out ..\cmd\breeze-agent\rsrc_windows_amd64.syso
if ($LASTEXITCODE -ne 0) { throw "go-winres simply breeze-agent failed with exit code $LASTEXITCODE" }
# breeze-user-helper: asInvoker (NOT --admin). It is spawned into the
# logged-in user's session with that user's filtered token; an admin
# manifest makes CreateProcessAsUser fail ERROR_ELEVATION_REQUIRED
# (#949 regression). Keeps VERSIONINFO for the #944 MSI overwrite rule.
& $winres simply --arch amd64 --no-suffix --icon icon.ico `
--file-version $env:BUILD_VERSION --product-version $env:BUILD_VERSION `
--product-name "Breeze RMM User Helper" --file-description "Breeze RMM User Helper" `
--copyright "Copyright (c) Breeze RMM" --original-filename "breeze-user-helper.exe" `
--out ..\cmd\breeze-user-helper\rsrc_windows_amd64.syso
if ($LASTEXITCODE -ne 0) { throw "go-winres simply breeze-user-helper failed with exit code $LASTEXITCODE" }
& $winres simply --arch amd64 --no-suffix --icon icon.ico `
--file-version $env:BUILD_VERSION --product-version $env:BUILD_VERSION `
--product-name "Breeze RMM Watchdog" --file-description "Breeze RMM Watchdog" `
--copyright "Copyright (c) Breeze RMM" --original-filename "breeze-watchdog.exe" `
--out ..\cmd\breeze-watchdog\rsrc_windows_amd64.syso
if ($LASTEXITCODE -ne 0) { throw "go-winres simply breeze-watchdog failed with exit code $LASTEXITCODE" }
& $winres simply --arch amd64 --no-suffix --icon icon.ico `
--file-version $env:BUILD_VERSION --product-version $env:BUILD_VERSION `
--product-name "Breeze RMM Backup Helper" --file-description "Breeze RMM Backup Helper" `
--copyright "Copyright (c) Breeze RMM" --original-filename "breeze-backup.exe" `
--out ..\cmd\breeze-backup\rsrc_windows_amd64.syso
if ($LASTEXITCODE -ne 0) { throw "go-winres simply breeze-backup failed with exit code $LASTEXITCODE" }
& $winres simply --arch amd64 --no-suffix --manifest gui --icon icon.ico `
--file-version $env:BUILD_VERSION --product-version $env:BUILD_VERSION `
--product-name "Breeze RMM Desktop Helper" --file-description "Breeze RMM Desktop Helper" `
--copyright "Copyright (c) Breeze RMM" --original-filename "breeze-desktop-helper.exe" `
--out ..\cmd\breeze-desktop-helper\rsrc_windows_amd64.syso
if ($LASTEXITCODE -ne 0) { throw "go-winres simply breeze-desktop-helper failed with exit code $LASTEXITCODE" }
Pop-Location
# All four exes below route through agent/scripts/build-edition.sh
# (invoked via git-bash, which windows-latest runners provide) so
# the self-host/hosted edition rules are enforced in one place
# rather than reimplemented per go-build call site. --edition
# self-host here is what makes this the public, unrestricted build
# (agent/internal/hostpolicy stays inert; see the script's header).
bash agent/scripts/build-edition.sh --edition self-host --component agent --goos windows --goarch amd64 --version $env:BUILD_VERSION --out ../dist/breeze-agent-windows-amd64.exe
if ($LASTEXITCODE -ne 0) { throw "build-edition.sh (agent) failed with exit code $LASTEXITCODE" }
# Build breeze-backup
bash agent/scripts/build-edition.sh --edition self-host --component backup --goos windows --goarch amd64 --version $env:BUILD_VERSION --out ../dist/breeze-backup-windows-amd64.exe
if ($LASTEXITCODE -ne 0) { throw "build-edition.sh (backup) failed with exit code $LASTEXITCODE" }
# Build breeze-watchdog
bash agent/scripts/build-edition.sh --edition self-host --component watchdog --goos windows --goarch amd64 --version $env:BUILD_VERSION --out ../dist/breeze-watchdog-windows-amd64.exe
if ($LASTEXITCODE -ne 0) { throw "build-edition.sh (watchdog) failed with exit code $LASTEXITCODE" }
# Build breeze-user-helper (GUI-subsystem sibling of breeze-agent).
# Thin cmd/breeze-user-helper wrapper over the same internal/agentapp
# code as breeze-agent — only the -H windowsgui linker flag and the
# embedded asInvoker manifest differ. The separate cmd package is what
# lets it ship asInvoker instead of the agent's requireAdministrator.
# Required by the AgentUserHelper scheduled task and the sessionbroker
# user-session spawn path (which uses the user's non-elevated token).
bash agent/scripts/build-edition.sh --edition self-host --component user-helper --goos windows --goarch amd64 --version $env:BUILD_VERSION --windowsgui --out ../dist/breeze-user-helper-windows-amd64.exe
if ($LASTEXITCODE -ne 0) { throw "build-edition.sh (user-helper) failed with exit code $LASTEXITCODE" }
# Regression guard (#949): assert the SHIPPED manifests are correct.
# The user-helper MUST be asInvoker and the agent MUST be
# requireAdministrator — and the inverse for each, since #949 is a
# bidirectional regression (user-helper gaining admin OR agent losing
# it both break). Read via .NET ReadAllBytes (Get-Content -Encoding
# Byte was removed in pwsh 7) and scan the exe's ASCII projection. cwd
# is the repo root here (the builds above Push-Location'd into agent
# and wrote ..\dist), so dist\ resolves at the repo root. The regexes
# are quote/spacing/attribute-order tolerant so a benign go-winres
# formatting change can't silently flip the guard.
$uhText = [System.Text.Encoding]::ASCII.GetString([System.IO.File]::ReadAllBytes((Resolve-Path "dist\breeze-user-helper-windows-amd64.exe").Path))
if ($uhText -notmatch 'requestedExecutionLevel[^>]*level\s*=\s*["'']asInvoker') { throw "breeze-user-helper.exe is not asInvoker — would reintroduce #949 (740 on filtered-token sessions)" }
if ($uhText -match 'level\s*=\s*["'']requireAdministrator') { throw "breeze-user-helper.exe is requireAdministrator — wrong manifest (#949)" }
$agText = [System.Text.Encoding]::ASCII.GetString([System.IO.File]::ReadAllBytes((Resolve-Path "dist\breeze-agent-windows-amd64.exe").Path))
if ($agText -notmatch 'requestedExecutionLevel[^>]*level\s*=\s*["'']requireAdministrator') { throw "breeze-agent.exe lost its requireAdministrator manifest" }
if ($agText -match 'level\s*=\s*["'']asInvoker') { throw "breeze-agent.exe is asInvoker — lost its requireAdministrator manifest (#949)" }
Write-Host "Manifest guard OK: user-helper=asInvoker, agent=requireAdministrator"
# Regression guard (#2797): the exes packaged into the MSI must not
# contain plaintext threat-signature strings — AV engines flag them as
# malware (VT-confirmed Elastic Multi.EICAR on shipped exes). git-bash
# on the windows runner provides bash + grep. Scans every dist/breeze-*.exe
# via glob (like the build-agent scan) instead of a hardcoded path list,
# so a renamed build output cannot silently dodge the scan; also fails if
# fewer than the four expected exes (agent, backup, watchdog, user-helper)
# are present.
- name: Scan Windows binaries for plaintext threat signatures (#2797)
shell: bash
run: |
shopt -s nullglob
bins=(dist/breeze-*.exe)
if [ "${#bins[@]}" -eq 0 ]; then
echo "no built Windows exes matched dist/breeze-*.exe — refusing to pass a vacuous scan" >&2
exit 1
fi
if [ "${#bins[@]}" -lt 4 ]; then
echo "only ${#bins[@]} exe(s) matched dist/breeze-*.exe, expected at least 4 (agent, backup, watchdog, user-helper) — a build output was renamed or dropped" >&2
exit 1
fi
bash scripts/security/check-agent-binary-signatures.sh "${bins[@]}"
# Publish these go-winres-resourced exes (VERSIONINFO, icon, the #949
# asInvoker/requireAdministrator manifests) under their canonical
# (non "-unsigned") artifact names. This job's overwrite:true wins over
# build-agent's earlier, unresourced windows/amd64 matrix-leg upload of
# the same artifact names — the public pipeline no longer signs these,
# but the canonical filenames must still carry the resourced build,
# since the agent's own Windows auto-updater fetches
# breeze-agent-windows-amd64.exe (and its siblings) by that exact name
# from the GitHub release (agent/internal/updater/updater.go).
- name: Upload agent EXE artifact (canonical name)
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-agent-windows-amd64
path: dist/breeze-agent-windows-amd64.exe
overwrite: true
retention-days: 30
- name: Upload backup EXE artifact (canonical name)
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-backup-windows-amd64
path: dist/breeze-backup-windows-amd64.exe
overwrite: true
retention-days: 30
- name: Upload watchdog EXE artifact (canonical name)
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-watchdog-windows-amd64
path: dist/breeze-watchdog-windows-amd64.exe
overwrite: true
retention-days: 30
# Issue #816: ship the user-helper as a discrete GitHub release asset so
# the agent's in-place auto-upgrade can fetch it directly.
- name: Upload user-helper EXE artifact (canonical name)
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-user-helper-windows-amd64
path: dist/breeze-user-helper-windows-amd64.exe
overwrite: true
retention-days: 30
- name: Stage unsigned Windows exes (BYO signing inputs)
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
New-Item -Path dist-unsigned -ItemType Directory -Force | Out-Null
foreach ($component in @("agent", "backup", "watchdog", "user-helper")) {
$src = "dist\breeze-$component-windows-amd64.exe"
if (-not (Test-Path $src)) { throw "missing expected build output: $src" }
Copy-Item $src "dist-unsigned\breeze-$component-windows-amd64-unsigned.exe"
}
- name: Upload unsigned agent EXE artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-agent-windows-amd64-unsigned
path: dist-unsigned/breeze-agent-windows-amd64-unsigned.exe
retention-days: 30
- name: Upload unsigned backup EXE artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-backup-windows-amd64-unsigned
path: dist-unsigned/breeze-backup-windows-amd64-unsigned.exe
retention-days: 30
- name: Upload unsigned watchdog EXE artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-watchdog-windows-amd64-unsigned
path: dist-unsigned/breeze-watchdog-windows-amd64-unsigned.exe
retention-days: 30
- name: Upload unsigned user-helper EXE artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-user-helper-windows-amd64-unsigned
path: dist-unsigned/breeze-user-helper-windows-amd64-unsigned.exe
retention-days: 30
# The public release no longer Authenticode-signs the agent MSI (see
# the removed build-windows-msi job). This publishes the self-host
# edition MSI unsigned, built from the exact exes staged above.
- name: Setup .NET SDK
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6
with:
dotnet-version: '8.0.x'
- name: Install WiX CLI
shell: pwsh
run: |
dotnet tool update --global wix | Out-Null
if ($LASTEXITCODE -ne 0) {
dotnet tool install --global wix | Out-Null
}
"$env:USERPROFILE\.dotnet\tools" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
wix eula accept wix7
- name: Build unsigned self-host MSI
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
$root = $env:GITHUB_WORKSPACE
$version = "${{ steps.version.outputs.version }}"
$agentExe = Join-Path $root "dist\breeze-agent-windows-amd64.exe"
$backupExe = Join-Path $root "dist\breeze-backup-windows-amd64.exe"
$watchdogExe = Join-Path $root "dist\breeze-watchdog-windows-amd64.exe"
$userHelperExe = Join-Path $root "dist\breeze-user-helper-windows-amd64.exe"
$msiPath = Join-Path $root "dist\breeze-agent.msi"
& (Join-Path $root "agent\installer\build-msi.ps1") -Edition SelfHost -Version $version -AgentExePath $agentExe -BackupExePath $backupExe -WatchdogExePath $watchdogExe -UserHelperExePath $userHelperExe -OutputPath $msiPath
if ($LASTEXITCODE -ne 0) { throw "build-msi.ps1 (SelfHost) failed with exit code $LASTEXITCODE" }
- name: Upload unsigned self-host Windows MSI artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-agent-windows-msi
path: dist/breeze-agent.msi
retention-days: 30
build-macos-agent:
name: Sign macOS Agent Binary
if: >-
github.ref_type == 'tag'
&& startsWith(github.ref, 'refs/tags/v')
runs-on: macos-latest
needs: [build-agent]
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Download darwin/amd64 artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: breeze-agent-darwin-amd64
path: staging/
- name: Download darwin/arm64 artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: breeze-agent-darwin-arm64
path: staging/
- name: Download backup darwin/amd64 artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: breeze-backup-darwin-amd64
path: staging/
- name: Download backup darwin/arm64 artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: breeze-backup-darwin-arm64
path: staging/
- name: Download desktop-helper darwin/amd64 artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: breeze-desktop-helper-darwin-amd64
path: staging/
- name: Download desktop-helper darwin/arm64 artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: breeze-desktop-helper-darwin-arm64
path: staging/
- name: Download watchdog darwin/amd64 artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: breeze-watchdog-darwin-amd64
path: staging/
- name: Download watchdog darwin/arm64 artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: breeze-watchdog-darwin-arm64
path: staging/
# BYO signing (Deliverable 1): capture the exact pre-sign inputs. The
# sign step below mutates staging/ in place, so this MUST run before
# any codesign invocation. Deliberately not gated on
# vars.ENABLE_MACOS_SIGNING — unsigned publication is independent of
# the signing toggle.
- name: Stage unsigned darwin binaries (BYO signing inputs)
run: |
set -euo pipefail
mkdir -p staging-unsigned
count=0
for bin in staging/breeze-agent-darwin-amd64 staging/breeze-agent-darwin-arm64 \
staging/breeze-backup-darwin-amd64 staging/breeze-backup-darwin-arm64 \
staging/breeze-desktop-helper-darwin-amd64 staging/breeze-desktop-helper-darwin-arm64 \
staging/breeze-watchdog-darwin-amd64 staging/breeze-watchdog-darwin-arm64; do
if [ ! -f "$bin" ]; then
echo "::error::missing expected darwin binary for unsigned capture: $bin"
exit 1
fi
cp "$bin" "staging-unsigned/$(basename "$bin")-unsigned"
count=$((count + 1))
done
if [ "$count" -ne 8 ]; then
echo "::error::expected 8 unsigned darwin binaries, staged $count"
exit 1
fi
- name: Upload unsigned agent darwin binaries
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-agent-darwin-unsigned
path: staging-unsigned/breeze-agent-darwin-*-unsigned
retention-days: 30
- name: Upload unsigned backup darwin binaries
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-backup-darwin-unsigned
path: staging-unsigned/breeze-backup-darwin-*-unsigned
retention-days: 30
- name: Upload unsigned desktop-helper darwin binaries
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-desktop-helper-darwin-unsigned
path: staging-unsigned/breeze-desktop-helper-darwin-*-unsigned
retention-days: 30
- name: Upload unsigned watchdog darwin binaries
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-watchdog-darwin-unsigned
path: staging-unsigned/breeze-watchdog-darwin-*-unsigned
retention-days: 30
- name: Import certificate into keychain
if: vars.ENABLE_MACOS_SIGNING == 'true'
env:
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
run: |
CERT_PATH="$RUNNER_TEMP/cert.p12"
KEYCHAIN_PATH="$RUNNER_TEMP/signing.keychain-db"
KEYCHAIN_PASSWORD="$(openssl rand -hex 16)"
echo "$APPLE_CERTIFICATE" | base64 --decode > "$CERT_PATH"
security create-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
security set-keychain-settings -lut 21600 "$KEYCHAIN_PATH"
security unlock-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
security import "$CERT_PATH" -P "$APPLE_CERTIFICATE_PASSWORD" \
-A -t cert -f pkcs12 -k "$KEYCHAIN_PATH"
security set-key-partition-list -S apple-tool:,apple: \
-k "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
security list-keychains -d user -s "$KEYCHAIN_PATH" \
$(security list-keychains -d user | tr -d '"')
rm -f "$CERT_PATH"
- name: Sign binaries
if: vars.ENABLE_MACOS_SIGNING == 'true'
env:
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
run: |
for bin in staging/breeze-agent-darwin-* staging/breeze-backup-darwin-* staging/breeze-desktop-helper-darwin-* staging/breeze-watchdog-darwin-*; do
[ -f "$bin" ] || continue
codesign --force --options runtime \
--entitlements agent/entitlements/agent-macos.entitlements.plist \
--sign "$APPLE_SIGNING_IDENTITY" --timestamp "$bin"
codesign --verify --verbose "$bin"
echo "Signed: $bin"
done
- name: Notarize binaries
if: vars.ENABLE_MACOS_SIGNING == 'true'
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
run: |
for bin in staging/breeze-agent-darwin-* staging/breeze-backup-darwin-* staging/breeze-desktop-helper-darwin-* staging/breeze-watchdog-darwin-*; do
[ -f "$bin" ] || continue
case "$bin" in *.pkg|*.zip) continue ;; esac
ZIP_PATH="${bin}.zip"
ditto -c -k --keepParent "$bin" "$ZIP_PATH"
scripts/release/notarize-submit.sh "$ZIP_PATH"
rm -f "$ZIP_PATH"
done
- name: Upload signed darwin/amd64
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-agent-darwin-amd64
path: staging/breeze-agent-darwin-amd64
overwrite: true
retention-days: 30
- name: Upload signed darwin/arm64
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-agent-darwin-arm64
path: staging/breeze-agent-darwin-arm64
overwrite: true
retention-days: 30
- name: Upload signed backup darwin/amd64
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-backup-darwin-amd64
path: staging/breeze-backup-darwin-amd64
overwrite: true
retention-days: 30
- name: Upload signed backup darwin/arm64
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-backup-darwin-arm64
path: staging/breeze-backup-darwin-arm64
overwrite: true
retention-days: 30
- name: Upload signed desktop-helper darwin/amd64
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-desktop-helper-darwin-amd64
path: staging/breeze-desktop-helper-darwin-amd64
overwrite: true
retention-days: 30
- name: Upload signed desktop-helper darwin/arm64
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-desktop-helper-darwin-arm64
path: staging/breeze-desktop-helper-darwin-arm64
overwrite: true
retention-days: 30
- name: Upload signed watchdog darwin/amd64
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-watchdog-darwin-amd64
path: staging/breeze-watchdog-darwin-amd64
overwrite: true
retention-days: 30
- name: Upload signed watchdog darwin/arm64
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-watchdog-darwin-arm64
path: staging/breeze-watchdog-darwin-arm64
overwrite: true
retention-days: 30
- name: Build macOS .pkg installers
env:
BUILD_VERSION: ${{ github.ref_name }}
run: |
VERSION="${BUILD_VERSION#v}"
chmod +x agent/installer/macos/build-pkg.sh
for arch in amd64 arm64; do
agent/installer/macos/build-pkg.sh \
"staging/breeze-agent-darwin-${arch}" \
"staging/breeze-desktop-helper-darwin-${arch}" \
"staging/breeze-backup-darwin-${arch}" \
"staging/breeze-watchdog-darwin-${arch}" \
"$VERSION" \
"$arch" \
"staging/breeze-agent-darwin-${arch}.pkg"
done
- name: Sign .pkg installers
if: vars.ENABLE_MACOS_SIGNING == 'true'
env:
APPLE_INSTALLER_IDENTITY: ${{ secrets.APPLE_INSTALLER_IDENTITY }}
run: |
if [ -z "$APPLE_INSTALLER_IDENTITY" ]; then
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
echo "::error::APPLE_INSTALLER_IDENTITY required for tag releases (productsign would silently skip, shipping unsigned .pkgs that fail downstream Installer.app notarization)"
exit 1
fi
echo "APPLE_INSTALLER_IDENTITY not set, skipping .pkg signing (non-tag build)"
exit 0
fi
for pkg in staging/*.pkg; do
SIGNED="${pkg%.pkg}-signed.pkg"
productsign --sign "$APPLE_INSTALLER_IDENTITY" "$pkg" "$SIGNED"
mv "$SIGNED" "$pkg"
echo "Signed: $(basename "$pkg")"
done
- name: Notarize and staple .pkg installers
if: vars.ENABLE_MACOS_SIGNING == 'true'
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
APPLE_INSTALLER_IDENTITY: ${{ secrets.APPLE_INSTALLER_IDENTITY }}
run: |
if [ -z "$APPLE_INSTALLER_IDENTITY" ]; then
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
echo "::error::APPLE_INSTALLER_IDENTITY required for tag releases (.pkgs would skip notarization and fail downstream Installer.app notarization)"
exit 1
fi
echo "APPLE_INSTALLER_IDENTITY not set, skipping .pkg notarization (non-tag build)"
exit 0
fi
for pkg in staging/*.pkg; do
scripts/release/notarize-submit.sh "$pkg"
xcrun stapler staple "$pkg"
xcrun stapler validate "$pkg"
echo "Notarized and stapled: $(basename "$pkg")"
done
- name: Verify macOS signatures and notarization
if: startsWith(github.ref, 'refs/tags/')
run: |
if [ "${{ vars.ENABLE_MACOS_SIGNING }}" != "true" ]; then
echo "::error::ENABLE_MACOS_SIGNING must be true for tag releases."
exit 1
fi
# Raw Mach-O binaries: verify signature + hardened runtime + Developer ID.
# Do NOT run `spctl -a -t exec` against raw command-line binaries — Gatekeeper's
# exec assessment is bundle-aware and rejects raw Mach-O with "the code is valid
# but does not seem to be an app", even when signing/notarization are correct.
# The user-facing assessment happens at the .pkg layer below (binaries are
# delivered to end users only inside notarized .pkgs).
for bin in staging/breeze-agent-darwin-* staging/breeze-backup-darwin-* staging/breeze-desktop-helper-darwin-* staging/breeze-watchdog-darwin-*; do
[ -f "$bin" ] || continue
# The prefix glob also matches .pkg / .zip files in staging at this
# point in the workflow — skip them (.pkg uses productsign, .zip is
# the notarytool upload artifact). The .pkg loop below verifies them.
case "$bin" in *.pkg|*.zip) continue ;; esac
codesign --verify --strict --verbose=2 "$bin"
DETAILS=$(codesign -dvvv "$bin" 2>&1)
if ! grep -q 'flags=.*runtime' <<<"$DETAILS"; then
echo "::error::$bin missing hardened runtime flag"
echo "$DETAILS"
exit 1
fi
if ! grep -q 'Authority=Developer ID Application' <<<"$DETAILS"; then
echo "::error::$bin not signed by Developer ID Application"
echo "$DETAILS"
exit 1
fi
done
for pkg in staging/*.pkg; do
[ -f "$pkg" ] || continue
pkgutil --check-signature "$pkg"
xcrun stapler validate "$pkg"
spctl -a -vv -t install "$pkg"
done
- name: Upload .pkg darwin/amd64
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-agent-darwin-amd64-pkg
path: staging/breeze-agent-darwin-amd64.pkg
retention-days: 30
- name: Upload .pkg darwin/arm64
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-agent-darwin-arm64-pkg
path: staging/breeze-agent-darwin-arm64.pkg
retention-days: 30
- name: Cleanup keychain
if: always() && vars.ENABLE_MACOS_SIGNING == 'true'
run: security delete-keychain "$RUNNER_TEMP/signing.keychain-db" || true
build-macos-installer-app:
name: Build macOS Installer App
needs: [build-macos-agent]
runs-on: macos-latest
if: >-
vars.ENABLE_MACOS_SIGNING == 'true'
&& github.ref_type == 'tag'
&& startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Download .pkg darwin/amd64
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: breeze-agent-darwin-amd64-pkg
path: installer-pkgs/
- name: Download .pkg darwin/arm64
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: breeze-agent-darwin-arm64-pkg
path: installer-pkgs/
- name: Import certificate into keychain
env:
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
run: |
CERT_PATH="$RUNNER_TEMP/cert.p12"
KEYCHAIN_PATH="$RUNNER_TEMP/signing.keychain-db"
KEYCHAIN_PASSWORD="$(openssl rand -hex 16)"
echo "$APPLE_CERTIFICATE" | base64 --decode > "$CERT_PATH"
security create-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
security set-keychain-settings -lut 21600 "$KEYCHAIN_PATH"
security unlock-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
security import "$CERT_PATH" -P "$APPLE_CERTIFICATE_PASSWORD" \
-A -t cert -f pkcs12 -k "$KEYCHAIN_PATH"
security set-key-partition-list -S apple-tool:,apple: \
-k "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
security list-keychains -d user -s "$KEYCHAIN_PATH" \
$(security list-keychains -d user | tr -d '"')
rm -f "$CERT_PATH"
- name: Build .app bundle
run: |
chmod +x agent/installer/macos-app/build-app-bundle.sh
agent/installer/macos-app/build-app-bundle.sh \
--pkg-amd64 installer-pkgs/breeze-agent-darwin-amd64.pkg \
--pkg-arm64 installer-pkgs/breeze-agent-darwin-arm64.pkg \
--output "build/Breeze Installer.app"
- name: Sign .app
env:
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
run: |
codesign --force --options runtime \
--entitlements agent/installer/macos-app/entitlements.plist \
--sign "$APPLE_SIGNING_IDENTITY" --timestamp \
--deep "build/Breeze Installer.app"
codesign --verify --verbose=2 "build/Breeze Installer.app"
- name: Notarize + staple
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
run: |
ditto -c -k --keepParent "build/Breeze Installer.app" build/installer-notarize.zip
scripts/release/notarize-submit.sh build/installer-notarize.zip
xcrun stapler staple "build/Breeze Installer.app"
xcrun stapler validate "build/Breeze Installer.app"
spctl -a -t exec -vv "build/Breeze Installer.app"
- name: Package for release
run: |
ditto -c -k --sequesterRsrc --keepParent \
"build/Breeze Installer.app" \
"build/Breeze Installer.app.zip"
ls -lh build/
- name: Upload artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: breeze-installer-app
path: build/Breeze Installer.app.zip
retention-days: 30
- name: Cleanup keychain
if: always()
run: security delete-keychain "$RUNNER_TEMP/signing.keychain-db" || true
build-viewer:
name: Build Viewer
if: >-
github.ref_type == 'tag'
&& startsWith(github.ref, 'refs/tags/v')
strategy:
fail-fast: false
matrix:
include:
- platform: windows-latest
target: x86_64-pc-windows-msvc
asset_name: breeze-viewer-windows.msi
asset_glob: 'src-tauri/target/x86_64-pc-windows-msvc/release/bundle/msi/*.msi'
- platform: ubuntu-22.04