forked from community-outpost/GenHub
-
Notifications
You must be signed in to change notification settings - Fork 1
559 lines (487 loc) · 22.1 KB
/
Copy pathci.yml
File metadata and controls
559 lines (487 loc) · 22.1 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
name: GenHub CI
permissions:
contents: read
pull-requests: write
on:
# release/** is covered explicitly rather than incidentally. A release branch is only built
# today because an open release PR happens to point at main, which makes its head a pull_request
# head — so coverage disappears the moment that PR merges or closes.
push:
branches: [main, development, 'release/**']
# Filters on the base branch, so without release/** a PR *into* a release branch gets no
# pre-merge CI at all. That is how #343 and #368 merged unbuilt.
pull_request:
branches: [main, development, 'release/**']
workflow_dispatch:
# A release branch is normally the head of an open release PR, so a push to it would otherwise
# start a second full matrix under a different key. Same-repository pull requests therefore share
# a group with pushes describing the same branch, and collapse.
#
# Only same-repository heads are keyed by branch name. A fork's head ref is contributor-controlled,
# so keying on it unconditionally would let a fork branch named `development`, `main` or
# `release/*` land in a protected branch's group — and because cancel-in-progress is on for pull
# requests, each push to that PR would cancel the protected branch's running CI. Fork pull requests
# fall back to github.ref_name, which is `<pr-number>/merge` and therefore unique per PR.
concurrency:
group: >-
${{ github.workflow }}-${{
github.event.pull_request.head.repo.full_name == github.repository
&& github.event.pull_request.head.ref
|| github.ref_name
}}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
DOTNET_VERSION: '8.0.x'
BUILD_CONFIGURATION: 'Release'
CORE_PROJECT: 'GenHub/GenHub.Core/GenHub.Core.csproj'
UI_PROJECT: 'GenHub/GenHub/GenHub.csproj'
WINDOWS_PROJECT: 'GenHub/GenHub.Windows/GenHub.Windows.csproj'
LINUX_PROJECT: 'GenHub/GenHub.Linux/GenHub.Linux.csproj'
MACOS_PROJECT: 'GenHub/GenHub.MacOS/GenHub.MacOS.csproj'
TEST_PROJECTS: 'GenHub/GenHub.Tests/**/*.csproj'
jobs:
detect-changes:
name: Detect File Changes
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
core: ${{ steps.filter.outputs.core }}
ui: ${{ steps.filter.outputs.ui }}
windows: ${{ steps.filter.outputs.windows }}
linux: ${{ steps.filter.outputs.linux }}
macos: ${{ steps.filter.outputs.macos }}
tests: ${{ steps.filter.outputs.tests }}
any: ${{ steps.filter.outputs.any }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Filter Changed Paths
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
core:
- 'GenHub/GenHub.Core/**'
ui:
- 'GenHub/GenHub/**'
windows:
- 'GenHub/GenHub.Windows/**'
linux:
- 'GenHub/GenHub.Linux/**'
macos:
- 'GenHub/GenHub.MacOS/**'
tests:
- 'GenHub/GenHub.Tests/**'
any:
- '**/*.cs'
- '**/*.axaml'
- '**/*.csproj'
- '**/*.sln'
- '.github/workflows/**'
- name: Changes Summary
run: |
echo "### 🔍 File Changes Summary" >> $GITHUB_STEP_SUMMARY
echo "- Core: ${{ steps.filter.outputs.core == 'true' && '✅' || '❌' }}" >> $GITHUB_STEP_SUMMARY
echo "- UI: ${{ steps.filter.outputs.ui == 'true' && '✅' || '❌' }}" >> $GITHUB_STEP_SUMMARY
echo "- Windows: ${{ steps.filter.outputs.windows == 'true' && '✅' || '❌' }}" >> $GITHUB_STEP_SUMMARY
echo "- Linux: ${{ steps.filter.outputs.linux == 'true' && '✅' || '❌' }}" >> $GITHUB_STEP_SUMMARY
echo "- macOS: ${{ steps.filter.outputs.macos == 'true' && '✅' || '❌' }}" >> $GITHUB_STEP_SUMMARY
build-windows:
name: Build Windows
needs: detect-changes
if: ${{ github.event_name == 'workflow_dispatch' || needs.detect-changes.outputs.any == 'true' || needs.detect-changes.outputs.core == 'true' || needs.detect-changes.outputs.ui == 'true' || needs.detect-changes.outputs.windows == 'true' }}
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Cache NuGet Packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Extract Build Info
id: buildinfo
shell: pwsh
run: |
$shortHash = "${{ github.sha }}".Substring(0, 7)
$prNumber = "${{ github.event.pull_request.number }}"
$runNumber = "${{ github.run_number }}"
# Velopack requires SemVer2 3-part version (MAJOR.MINOR.PATCH)
# Using 0.0.X format to indicate alpha/pre-release status
if ($prNumber) {
$version = "0.0.$runNumber-pr$prNumber"
$channel = "PR"
} else {
$version = "0.0.$runNumber"
$channel = "CI"
}
Write-Host "Build Info:"
Write-Host " Short Hash: $shortHash"
Write-Host " PR Number: $prNumber"
Write-Host " Run Number: $runNumber"
Write-Host " Version: $version (SemVer2 for Velopack)"
Write-Host " Channel: $channel"
echo "SHORT_HASH=$shortHash" >> $env:GITHUB_OUTPUT
echo "PR_NUMBER=$prNumber" >> $env:GITHUB_OUTPUT
echo "VERSION=$version" >> $env:GITHUB_OUTPUT
echo "CHANNEL=$channel" >> $env:GITHUB_OUTPUT
- name: Build Projects
shell: pwsh
run: |
$buildProps = @(
"-p:Version=${{ steps.buildinfo.outputs.VERSION }}"
"-p:GitShortHash=${{ steps.buildinfo.outputs.SHORT_HASH }}"
"-p:PullRequestNumber=${{ steps.buildinfo.outputs.PR_NUMBER }}"
"-p:BuildChannel=${{ steps.buildinfo.outputs.CHANNEL }}"
)
Write-Host "Building Core project with build info"
dotnet build "${{ env.CORE_PROJECT }}" -c ${{ env.BUILD_CONFIGURATION }} @buildProps
Write-Host "Building UI project"
dotnet build "${{ env.UI_PROJECT }}" -c ${{ env.BUILD_CONFIGURATION }} @buildProps
Write-Host "Building Windows project"
dotnet build "${{ env.WINDOWS_PROJECT }}" -c ${{ env.BUILD_CONFIGURATION }} @buildProps
- name: Publish Windows App
shell: pwsh
run: |
$buildProps = @(
"-p:Version=${{ steps.buildinfo.outputs.VERSION }}"
"-p:GitShortHash=${{ steps.buildinfo.outputs.SHORT_HASH }}"
"-p:PullRequestNumber=${{ steps.buildinfo.outputs.PR_NUMBER }}"
"-p:BuildChannel=${{ steps.buildinfo.outputs.CHANNEL }}"
)
Write-Host "Publishing Windows application"
Write-Host "Version: ${{ steps.buildinfo.outputs.VERSION }}"
dotnet publish "${{ env.WINDOWS_PROJECT }}" `
-c ${{ env.BUILD_CONFIGURATION }} `
-r win-x64 `
--self-contained true `
-o "win-publish" `
@buildProps
- name: Install Velopack CLI
run: dotnet tool install -g vpk
- name: Create Velopack Package
shell: pwsh
run: |
Write-Host "Creating Velopack package..."
vpk pack `
--packId GenHub `
--packVersion ${{ steps.buildinfo.outputs.VERSION }} `
--packDir win-publish `
--mainExe GenHub.Windows.exe `
--packTitle "GenHub" `
--packAuthors "Community Outpost" `
--icon GenHub/GenHub/Assets/Icons/generalshub.ico `
--outputDir velopack-release
Write-Host "Velopack artifacts created:"
Get-ChildItem -Path "velopack-release" -Recurse | Select-Object Name, Length
- name: Run Tests
id: tests
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
$testProjects = Get-ChildItem -Path "GenHub/GenHub.Tests" -Recurse -Filter *.csproj | Where-Object { $_.Name -notlike '*Linux*' -and $_.Name -notlike '*MacOS*' }
if ($testProjects) {
foreach ($testProject in $testProjects) {
Write-Host "Testing $($testProject.FullName)"
dotnet test $testProject.FullName -c $env:BUILD_CONFIGURATION
if ($LASTEXITCODE -ne 0) {
throw "Test failed for $($testProject.FullName)"
}
}
} else {
Write-Host "No test projects found."
}
- name: Upload Velopack Update Package (.nupkg)
uses: actions/upload-artifact@v4
with:
name: genhub-velopack-windows-${{ steps.buildinfo.outputs.VERSION }}
path: velopack-release/*.nupkg
if-no-files-found: error
retention-days: 30
- name: Upload Velopack Setup Installer
uses: actions/upload-artifact@v4
with:
name: genhub-setup-windows-${{ steps.buildinfo.outputs.VERSION }}
path: velopack-release/*-Setup.exe
if-no-files-found: error
retention-days: 30
- name: Upload Velopack Metadata
uses: actions/upload-artifact@v4
with:
name: genhub-metadata-windows-${{ steps.buildinfo.outputs.VERSION }}
path: velopack-release/RELEASES
if-no-files-found: error
retention-days: 30
build-linux:
name: Build Linux
needs: detect-changes
if: ${{ github.event_name == 'workflow_dispatch' || needs.detect-changes.outputs.any == 'true' || needs.detect-changes.outputs.core == 'true' || needs.detect-changes.outputs.ui == 'true' || needs.detect-changes.outputs.linux == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install Linux Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libx11-dev
- name: Cache NuGet Packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Extract Build Info
id: buildinfo
run: |
SHORT_HASH=$(echo "${{ github.sha }}" | cut -c1-7)
PR_NUMBER="${{ github.event.pull_request.number }}"
RUN_NUMBER="${{ github.run_number }}"
# Velopack requires SemVer2 3-part version (MAJOR.MINOR.PATCH)
# Using 0.0.X format to indicate alpha/pre-release status
if [ -n "$PR_NUMBER" ]; then
VERSION="0.0.${RUN_NUMBER}-pr${PR_NUMBER}"
CHANNEL="PR"
else
VERSION="0.0.${RUN_NUMBER}"
CHANNEL="CI"
fi
echo "Build Info:"
echo " Short Hash: $SHORT_HASH"
echo " PR Number: $PR_NUMBER"
echo " Run Number: $RUN_NUMBER"
echo " Version: $VERSION (SemVer2 for Velopack)"
echo " Channel: $CHANNEL"
echo "SHORT_HASH=$SHORT_HASH" >> $GITHUB_OUTPUT
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_OUTPUT
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Build Projects
run: |
BUILD_PROPS="-p:Version=${{ steps.buildinfo.outputs.VERSION }} -p:GitShortHash=${{ steps.buildinfo.outputs.SHORT_HASH }} -p:PullRequestNumber=${{ steps.buildinfo.outputs.PR_NUMBER }} -p:BuildChannel=${{ steps.buildinfo.outputs.CHANNEL }}"
echo "Building Core project with build info"
dotnet build "${{ env.CORE_PROJECT }}" -c ${{ env.BUILD_CONFIGURATION }} $BUILD_PROPS
echo "Building UI project"
dotnet build "${{ env.UI_PROJECT }}" -c ${{ env.BUILD_CONFIGURATION }} $BUILD_PROPS
echo "Building Linux project"
dotnet build "${{ env.LINUX_PROJECT }}" -c ${{ env.BUILD_CONFIGURATION }} $BUILD_PROPS
- name: Publish Linux App
run: |
BUILD_PROPS="-p:Version=${{ steps.buildinfo.outputs.VERSION }} -p:GitShortHash=${{ steps.buildinfo.outputs.SHORT_HASH }} -p:PullRequestNumber=${{ steps.buildinfo.outputs.PR_NUMBER }} -p:BuildChannel=${{ steps.buildinfo.outputs.CHANNEL }}"
echo "Publishing Linux application"
dotnet publish "${{ env.LINUX_PROJECT }}" \
-c ${{ env.BUILD_CONFIGURATION }} \
-r linux-x64 \
--self-contained true \
-o "linux-publish" \
$BUILD_PROPS
- name: Install Velopack CLI
run: dotnet tool install -g vpk
- name: Create Velopack Package
run: |
echo "Creating Velopack package..."
vpk pack \
--packId GenHub \
--packVersion ${{ steps.buildinfo.outputs.VERSION }} \
--packDir linux-publish \
--mainExe GenHub.Linux \
--packTitle "GenHub" \
--packAuthors "Community Outpost" \
--icon GenHub/GenHub/Assets/Icons/generalshub-icon.png \
--outputDir velopack-release
echo "Velopack artifacts created:"
ls -lh velopack-release/
- name: Run Tests
run: |
shopt -s globstar nullglob
for test_project in ${{ env.TEST_PROJECTS }}; do
[[ "$test_project" == *Windows* || "$test_project" == *MacOS* ]] && continue
echo "Testing $test_project"
dotnet test "$test_project" -c ${{ env.BUILD_CONFIGURATION }} --verbosity normal
done
- name: Upload Velopack Update Package (.nupkg)
uses: actions/upload-artifact@v4
with:
name: genhub-velopack-linux-${{ steps.buildinfo.outputs.VERSION }}
path: velopack-release/*.nupkg
if-no-files-found: error
retention-days: 30
- name: Upload Velopack Metadata
uses: actions/upload-artifact@v4
with:
name: genhub-metadata-linux-${{ steps.buildinfo.outputs.VERSION }}
path: velopack-release/releases.*.json
if-no-files-found: error
retention-days: 30
build-macos:
name: Build macOS
needs: detect-changes
if: ${{ github.event_name == 'workflow_dispatch' || needs.detect-changes.outputs.any == 'true' || needs.detect-changes.outputs.core == 'true' || needs.detect-changes.outputs.ui == 'true' || needs.detect-changes.outputs.macos == 'true' }}
# macos-14 and newer are Apple Silicon. Pinning a version rather than using
# macos-latest keeps the runner architecture stable when the label moves.
runs-on: macos-15
timeout-minutes: 30
steps:
- name: Checkout Code
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false
- name: Setup .NET
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Cache NuGet Packages
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Extract Build Info
id: buildinfo
run: |
SHORT_HASH=$(echo "${{ github.sha }}" | cut -c1-7)
PR_NUMBER="${{ github.event.pull_request.number }}"
RUN_NUMBER="${{ github.run_number }}"
if [ -n "$PR_NUMBER" ]; then
VERSION="0.0.${RUN_NUMBER}-pr${PR_NUMBER}"
CHANNEL="PR"
else
VERSION="0.0.${RUN_NUMBER}"
CHANNEL="CI"
fi
echo "SHORT_HASH=$SHORT_HASH" >> $GITHUB_OUTPUT
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_OUTPUT
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "CHANNEL=$CHANNEL" >> $GITHUB_OUTPUT
- name: Build Projects
run: |
BUILD_PROPS="-p:Version=${{ steps.buildinfo.outputs.VERSION }} -p:GitShortHash=${{ steps.buildinfo.outputs.SHORT_HASH }} -p:PullRequestNumber=${{ steps.buildinfo.outputs.PR_NUMBER }} -p:BuildChannel=${{ steps.buildinfo.outputs.CHANNEL }}"
dotnet build "${{ env.CORE_PROJECT }}" -c ${{ env.BUILD_CONFIGURATION }} $BUILD_PROPS
dotnet build "${{ env.UI_PROJECT }}" -c ${{ env.BUILD_CONFIGURATION }} $BUILD_PROPS
dotnet build "${{ env.MACOS_PROJECT }}" -c ${{ env.BUILD_CONFIGURATION }} $BUILD_PROPS
# Runs the macOS composition root before publish. "Run Tests" at the end of this job
# already covered this project, but it sits after Publish and Smoke Test App Launch —
# so an unresolvable service killed the job at the smoke test, as a status-134 crash
# after packaging, and the assertion that names the service never executed. Running it
# here fails in seconds with the service name. A missing platform registration is
# invisible to per-branch CI, appearing only once both halves are merged, so this is
# the earliest point it can surface.
- name: Run macOS Tests
run: |
dotnet test GenHub/GenHub.Tests/GenHub.Tests.MacOS/GenHub.Tests.MacOS.csproj \
-c ${{ env.BUILD_CONFIGURATION }} --verbosity normal
- name: Publish macOS App
run: |
BUILD_PROPS="-p:Version=${{ steps.buildinfo.outputs.VERSION }} -p:GitShortHash=${{ steps.buildinfo.outputs.SHORT_HASH }} -p:PullRequestNumber=${{ steps.buildinfo.outputs.PR_NUMBER }} -p:BuildChannel=${{ steps.buildinfo.outputs.CHANNEL }}"
dotnet publish "${{ env.MACOS_PROJECT }}" \
-c ${{ env.BUILD_CONFIGURATION }} \
-r osx-arm64 \
--self-contained true \
-o "macos-publish" \
$BUILD_PROPS
# Unsigned and unnotarized: this proves the build and startup path, it is not a
# distributable artifact. Signing needs a Developer ID identity, and the vendored
# Playwright payload under Contents/MacOS breaks `codesign --deep` besides.
- name: Create .app Bundle
run: |
.github/scripts/package-macos-app.sh \
macos-publish \
macos-dist \
"${{ steps.buildinfo.outputs.VERSION }}"
# A bundle that builds but dies on startup is worse than no bundle, because CI
# goes green. Launch it headless and require it to survive; that is what caught
# the IGitHubTokenStorage crash, which every build-only check passed straight
# through.
- name: Smoke Test App Launch
run: |
APP_BIN="macos-dist/GenHub.app/Contents/MacOS/GenHub.MacOS"
"$APP_BIN" > app-launch.log 2>&1 &
APP_PID=$!
SURVIVED=0
for _ in $(seq 1 "$MACOS_SMOKE_TEST_SECONDS"); do
sleep 1
if ! kill -0 "$APP_PID" 2>/dev/null; then
break
fi
SURVIVED=$((SURVIVED + 1))
done
if kill -0 "$APP_PID" 2>/dev/null; then
echo "App stayed up for ${SURVIVED}s"
if kill "$APP_PID" 2>/dev/null; then
wait "$APP_PID" 2>/dev/null || true
else
set +e
wait "$APP_PID"
APP_STATUS=$?
set -e
echo "::error::GenHub.app exited before CI could stop it (status $APP_STATUS). Log follows."
cat app-launch.log
exit 1
fi
else
set +e
wait "$APP_PID"
APP_STATUS=$?
set -e
echo "::error::GenHub.app exited during startup (status $APP_STATUS). Log follows."
cat app-launch.log
exit 1
fi
env:
# Avalonia needs a window server. The macOS runner provides one, so no
# headless backend is configured here; if that changes, set
# AVALONIA_SCREEN_SCALE_FACTORS or switch to a headless platform.
DOTNET_CLI_TELEMETRY_OPTOUT: '1'
MACOS_SMOKE_TEST_SECONDS: '15'
# Platform test projects are run only on their matching hosts.
- name: Run Tests
shell: bash
run: |
while IFS= read -r test_project; do
# MacOS is covered by "Run macOS Tests" before publish, so it is skipped
# here rather than run a second time.
[[ "$test_project" == *Windows* || "$test_project" == *Linux* || "$test_project" == *MacOS* ]] && continue
echo "Testing $test_project"
dotnet test "$test_project" -c ${{ env.BUILD_CONFIGURATION }} --verbosity normal
done < <(find GenHub/GenHub.Tests -type f -name '*.csproj' | sort)
- name: Upload macOS App Bundle
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: genhub-macos-app-${{ steps.buildinfo.outputs.VERSION }}
path: macos-dist/
if-no-files-found: error
retention-days: 30
- name: Upload Launch Log On Failure
if: failure()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: genhub-macos-launch-log-${{ steps.buildinfo.outputs.VERSION }}
path: app-launch.log
if-no-files-found: ignore
retention-days: 7
summary:
name: Build Summary
needs: [build-windows, build-linux, build-macos]
if: always()
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Generate Summary
run: |
echo "### 🚀 GenHub Build Results" >> $GITHUB_STEP_SUMMARY
echo "| Platform | Status |" >> $GITHUB_STEP_SUMMARY
echo "| --- | --- |" >> $GITHUB_STEP_SUMMARY
echo "| Windows | ${{ needs.build-windows.result == 'success' && '✅ Passed' || '❌ Failed' }} |" >> $GITHUB_STEP_SUMMARY
echo "| Linux | ${{ needs.build-linux.result == 'success' && '✅ Passed' || '❌ Failed' }} |" >> $GITHUB_STEP_SUMMARY
echo "| macOS | ${{ needs.build-macos.result == 'success' && '✅ Passed' || '❌ Failed' }} |" >> $GITHUB_STEP_SUMMARY