feat(packaging): add macOS bundle metadata, release packaging and application icon
This commit is contained in:
1 parent
90a7531a27
commit
97f79db3f1
11 files changed
+160
-19
No files matched your search
+30
-17
@@ -1,20 +1,25 @@
|
||||
# Manual-only release build (PLAN §7.2): no push or pull_request trigger.
|
||||
# Each RID job runs build -> test -> publish/pack -> upload; a failing step
|
||||
# skips the rest of that job, so a RID whose tests fail produces no artifact.
|
||||
# No GitHub Release is created.
|
||||
name: Build
|
||||
|
||||
# Manual trigger only. There is no push/pull_request trigger on purpose:
|
||||
# the project must not depend on push-triggered CI.
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
# Least privilege: the workflow only reads the repository and uploads artifacts.
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
DOTNET_NOLOGO: "true"
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: "true"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: ${{ matrix.rid }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
# One failing RID must not cancel the others.
|
||||
# Every RID stands on its own: one failure does not cancel the others.
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
@@ -22,35 +27,43 @@ jobs:
|
||||
os: windows-latest
|
||||
- rid: linux-x64
|
||||
os: ubuntu-latest
|
||||
- rid: osx-x64
|
||||
os: macos-15-intel
|
||||
- rid: osx-arm64
|
||||
os: macos-latest
|
||||
|
||||
os: macos-15
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup .NET
|
||||
- name: Set up .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: 10.0.x
|
||||
|
||||
- name: Restore
|
||||
run: dotnet restore YKanBan.slnx
|
||||
|
||||
- name: Build
|
||||
run: dotnet build YKanBan.slnx -c Release --no-restore
|
||||
run: dotnet build YKanBan.slnx -c Release
|
||||
|
||||
# A failing test fails the job, so the publish and upload steps below are
|
||||
# skipped and this RID produces no artifact.
|
||||
- name: Test
|
||||
run: dotnet test YKanBan.slnx -c Release --no-build --no-restore
|
||||
run: dotnet test YKanBan.slnx -c Release --no-build
|
||||
|
||||
- name: Publish
|
||||
run: dotnet publish YKanBan/YKanBan.csproj -c Release -r ${{ matrix.rid }} --self-contained true -o publish/${{ matrix.rid }}
|
||||
run: >
|
||||
dotnet publish YKanBan/YKanBan.csproj -c Release -r ${{ matrix.rid }}
|
||||
--self-contained -o publish/${{ matrix.rid }}
|
||||
|
||||
- name: Pack
|
||||
id: pack
|
||||
run: |
|
||||
version="$(dotnet msbuild YKanBan/YKanBan.csproj -getProperty:Version)"
|
||||
bash packaging/package.sh ${{ matrix.rid }} publish/${{ matrix.rid }} dist "$version"
|
||||
echo "name=YKanBan-$version-${{ matrix.rid }}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: YKanBan-${{ matrix.rid }}
|
||||
path: publish/${{ matrix.rid }}
|
||||
name: ${{ steps.pack.outputs.name }}
|
||||
path: dist/*
|
||||
if-no-files-found: error
|
||||
Reference in new issue
Block a user