ci: rewrite workflow cleanly (sed mangled previous commit)
This commit is contained in:
+17
-25
@@ -1,20 +1,12 @@
|
|||||||
# Yowie IT — RustDesk patched-binary build pipeline
|
# Yowie IT - RustDesk patched-binary build pipeline
|
||||||
# =====================================================================
|
# =====================================================================
|
||||||
# Source-of-truth build for the Yowie IT-patched rustdesk.exe (always-
|
# Builds the Sciter-UI rustdesk.exe with our get_cursor() patch for
|
||||||
# emit-cursor variant for #672 server endpoint headless cursor fix).
|
# upstream issue #672 (always emit cursor data on Windows endpoints
|
||||||
|
# regardless of physical mouse presence).
|
||||||
#
|
#
|
||||||
# Triggers: push to yowie-master, manual dispatch.
|
# Self-hosted Windows runner: yowie-admin-pc.
|
||||||
# Runs on: self-hosted Windows runner (yowie-admin-pc) registered with
|
# Toolchain version pins match upstream rustdesk CI (LLVM 16.0.0, vcpkg
|
||||||
# git.yowieit.com — see CHANGELOG 2026-05-02.
|
# at 120deac3, Rust stable).
|
||||||
#
|
|
||||||
# Toolchain version pins (match rustdesk upstream CI exactly):
|
|
||||||
# - LLVM 16.0.0 (rustdesk's LLVM_VERSION)
|
|
||||||
# - vcpkg @ 120deac3062162151622ca4860575a33844ba10b
|
|
||||||
# - Rust stable
|
|
||||||
#
|
|
||||||
# Output artifact: rustdesk.exe (~50 MB) attached to a Gitea release
|
|
||||||
# tagged build-${{ github.sha }}. OnRamp's Install-RustDeskClient
|
|
||||||
# downloads from this release URL.
|
|
||||||
|
|
||||||
name: Build patched rustdesk.exe
|
name: Build patched rustdesk.exe
|
||||||
|
|
||||||
@@ -26,6 +18,7 @@ on:
|
|||||||
env:
|
env:
|
||||||
LLVM_VERSION: "16.0.0"
|
LLVM_VERSION: "16.0.0"
|
||||||
VCPKG_COMMIT_ID: "120deac3062162151622ca4860575a33844ba10b"
|
VCPKG_COMMIT_ID: "120deac3062162151622ca4860575a33844ba10b"
|
||||||
|
CARGO_BIN: "C:\Users\Yowie\.cargo\bin"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -40,10 +33,10 @@ jobs:
|
|||||||
- name: Verify Rust toolchain
|
- name: Verify Rust toolchain
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
rustc --version "C:SERSYOWIE.CARGOBIN
|
& "$env:CARGO_BIN\rustc.exe" --version
|
||||||
USTC.EXE" --VERSION
|
& "$env:CARGO_BIN\cargo.exe" --version
|
||||||
|
|
||||||
|
- name: Setup LLVM 16 (matches upstream rustdesk CI)
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
if (-not (Test-Path 'C:\LLVM16\bin\libclang.dll')) {
|
if (-not (Test-Path 'C:\LLVM16\bin\libclang.dll')) {
|
||||||
@@ -58,7 +51,7 @@ jobs:
|
|||||||
echo "LIBCLANG_PATH=C:\LLVM16\bin" >> $env:GITHUB_ENV
|
echo "LIBCLANG_PATH=C:\LLVM16\bin" >> $env:GITHUB_ENV
|
||||||
echo "C:\LLVM16\bin" >> $env:GITHUB_PATH
|
echo "C:\LLVM16\bin" >> $env:GITHUB_PATH
|
||||||
|
|
||||||
|
- name: Setup vcpkg pinned commit
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
if (-not (Test-Path 'C:\vcpkg\vcpkg.exe')) {
|
if (-not (Test-Path 'C:\vcpkg\vcpkg.exe')) {
|
||||||
@@ -72,29 +65,28 @@ jobs:
|
|||||||
echo "VCPKG_ROOT=C:\vcpkg" >> $env:GITHUB_ENV
|
echo "VCPKG_ROOT=C:\vcpkg" >> $env:GITHUB_ENV
|
||||||
echo "C:\vcpkg" >> $env:GITHUB_PATH
|
echo "C:\vcpkg" >> $env:GITHUB_PATH
|
||||||
|
|
||||||
|
- name: Install vcpkg native deps
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
C:\vcpkg\vcpkg.exe install --triplet x64-windows-static libvpx libyuv opus aom libjpeg-turbo
|
C:\vcpkg\vcpkg.exe install --triplet x64-windows-static libvpx libyuv opus aom libjpeg-turbo
|
||||||
|
|
||||||
|
- name: cargo build --release (Sciter UI)
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
run: |
|
& "$env:CARGO_BIN\cargo.exe" build --release --no-default-features --features inline
|
||||||
|
|
||||||
|
- name: Verify binary + patch marker
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$exe = "target\release\rustdesk.exe"
|
$exe = "target\release\rustdesk.exe"
|
||||||
if (-not (Test-Path $exe)) { throw "rustdesk.exe not produced" }
|
if (-not (Test-Path $exe)) { throw "rustdesk.exe not produced" }
|
||||||
$size = (Get-Item $exe).Length
|
$size = (Get-Item $exe).Length
|
||||||
Write-Output "rustdesk.exe size: $size bytes"
|
Write-Output "rustdesk.exe size: $size bytes"
|
||||||
Write-Output "rustdesk.exe size: $size bytes"
|
|
||||||
if (-not (Select-String -Path "src\platform\windows.rs" -Pattern "Yowie IT MSP fork" -Quiet)) {
|
if (-not (Select-String -Path "src\platform\windows.rs" -Pattern "Yowie IT MSP fork" -Quiet)) {
|
||||||
throw "patch marker missing from src\platform\windows.rs"
|
throw "patch marker missing from src\platform\windows.rs"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: rustdesk-yowie-windows-x64
|
name: rustdesk-yowie-windows-x64
|
||||||
|
|||||||
Reference in New Issue
Block a user