mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
* 激进的更新 * 试试 * fix.可爱的我一直在修CI( * fix.启动器一定要能够启动 * feat.尝试弄了AOT的启动器。 * fix.修CI,好像是因为Linux那边有个问题,反正修就对了。 * fix.ci难修,为什么liunx跑不起来呢? * Update build.yml * Update LanMountainDesktop.csproj * changed.调整了启动逻辑,优化了更新页面。 * changed.优化了更新体验 * feat.依旧试增量更新这一块,看看velopack * fix.我们试验性地修复了启动器无法正常启动的问题,原因可能是这个画面没有启动,就GUI没显示。然后还把编译问题修了一下。 * fix.继续修ci,ci怎么天天炸 * changed.velopack,试试rust * fix.修ci,修融合桌面,修启动器 * fix.GitHub Action工作流怎么天天出问题 * feat.引入velopack,不好,是rust(至少内存很安全了。 * chore: migrate release pipeline to signed filemap and wire rainyun s3 * fix: make optional s3 upload step workflow-parse safe * fix: make delta pack generation robust for empty diffs and linux paths * chore: rotate launcher update public key for pdc signing * fix: restore stable launcher update public key * fix: sync launcher public key with update signing secret * fix: normalize PEM line endings in signing key validation * fix: rotate launcher public key to match ci signing secret * fix: compare signing keys by SPKI instead of PEM text * refactor update backend to host-managed PDC pipeline * fix release workflow env key collisions * relax publish-pdc precheck to require S3 only * set GH_TOKEN for PDCC installer step * ci: add local pdc mock fallback for release publish * ci: fix pdc mock process log redirection * ci: fallback pdcc signing key to update private key * ci: ensure pdcc signing passphrase env is always set * ci: create pdcc publish root before invoking client * ci: set pdcc version variable from release version * ci: decouple pdcc installer version from publish config version * ci: package pdcc subchannels with generated filemap and changelog * ci: make local pdc mock diff return empty for fast fallback * ci: fix pdcc variable mapping and pdc signing prechecks * Update App.axaml.cs * ci: wire aws cli credentials for rainyun s3 * ci: pin pdcc client version separately from app version * ci: harden local pdc mock transport handling * ci: publish pdcc subchannels in one pass * ci: add pdcc publish heartbeat and timeout * ci: fix pdcc publish workdir bootstrap * feat.Penguin Logistics Online Network Distribution System * ci: fix plonds s3 probe and signing fallback * ci: validate signing key and quiet missing baselines * ci: relax aws checksum mode for rainyun s3 * ci: avoid multipart uploads to rainyun s3 * ci: handle empty plonds baselines safely * ci.plonds * Rebuild release pipeline around PLONDS and DDSS * Fix Windows installer script path in release workflow
161 lines
4.2 KiB
YAML
161 lines
4.2 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
tags-ignore:
|
|
- '*'
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
DOTNET_VERSION: '10.0.x'
|
|
Solution_Name: LanMountainDesktop.slnx
|
|
DOTNET_gcServer: 1
|
|
|
|
jobs:
|
|
build-windows:
|
|
runs-on: windows-latest
|
|
name: Build_Windows_${{ matrix.configuration }}
|
|
strategy:
|
|
matrix:
|
|
configuration: [ Debug, Release ]
|
|
fail-fast: false
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: ${{ env.DOTNET_VERSION }}
|
|
dotnet-quality: 'preview'
|
|
|
|
- name: Restore
|
|
run: dotnet restore ${{ env.Solution_Name }}
|
|
|
|
- name: Build
|
|
run: dotnet build ${{ env.Solution_Name }} --no-restore -c ${{ matrix.configuration }} -v minimal
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: build-windows-${{ matrix.configuration }}
|
|
path: |
|
|
LanMountainDesktop/bin/${{ matrix.configuration }}/
|
|
retention-days: 7
|
|
|
|
build-linux:
|
|
runs-on: ubuntu-latest
|
|
name: Build_Linux
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
- name: Install system dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y \
|
|
libfontconfig1 libfreetype6 \
|
|
libx11-6 libxrandr2 libxinerama1 \
|
|
libxi6 libxcursor1 libxext6 \
|
|
libxrender1 libxkbcommon-x11-0 \
|
|
clang zlib1g-dev
|
|
|
|
# Ubuntu 24.04+ moved several packages to t64 names.
|
|
sudo apt-get install -y libasound2t64 || sudo apt-get install -y libasound2
|
|
sudo apt-get install -y libportaudio2t64 || sudo apt-get install -y libportaudio2
|
|
|
|
# Prefer modern WebKit package, fallback for older images.
|
|
sudo apt-get install -y libwebkit2gtk-4.1-dev || sudo apt-get install -y libwebkit2gtk-4.0-dev
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: ${{ env.DOTNET_VERSION }}
|
|
dotnet-quality: 'preview'
|
|
|
|
- name: Restore
|
|
run: dotnet restore ${{ env.Solution_Name }}
|
|
|
|
- name: Build
|
|
run: dotnet build ${{ env.Solution_Name }} --no-restore -c Release -v minimal
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: build-linux
|
|
path: |
|
|
LanMountainDesktop/bin/Release/
|
|
retention-days: 7
|
|
|
|
build-macos:
|
|
runs-on: macos-latest
|
|
name: Build_macOS
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
- name: Install dependencies
|
|
run: brew install portaudio
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: ${{ env.DOTNET_VERSION }}
|
|
dotnet-quality: 'preview'
|
|
|
|
- name: Restore
|
|
run: dotnet restore ${{ env.Solution_Name }}
|
|
|
|
- name: Build
|
|
run: dotnet build ${{ env.Solution_Name }} --no-restore -c Release -v minimal
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: build-macos
|
|
path: |
|
|
LanMountainDesktop/bin/Release/
|
|
retention-days: 7
|
|
|
|
pack-plugin-packages:
|
|
runs-on: ubuntu-latest
|
|
name: Pack_Plugin_Packages
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: ${{ env.DOTNET_VERSION }}
|
|
dotnet-quality: 'preview'
|
|
|
|
- name: Pack SDK and template packages
|
|
shell: pwsh
|
|
run: .\scripts\Pack-PluginPackages.ps1 -Configuration Release -OutputPath .\artifacts\nuget
|
|
|
|
- name: Upload plugin package artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: plugin-packages
|
|
path: artifacts/nuget/*.nupkg
|
|
if-no-files-found: error
|
|
retention-days: 14
|