From ed29d93095d520446ebd82961471ea073417c2fc Mon Sep 17 00:00:00 2001 From: yanghang <2390375302@qq.com> Date: Thu, 18 Jun 2026 18:26:23 +0800 Subject: [PATCH] ci: remove old windows-test-release workflow (superseded by windows-desktop-release-package) --- .github/workflows/windows-test-release.yml | 105 --------------------- 1 file changed, 105 deletions(-) delete mode 100644 .github/workflows/windows-test-release.yml diff --git a/.github/workflows/windows-test-release.yml b/.github/workflows/windows-test-release.yml deleted file mode 100644 index cd3c0306..00000000 --- a/.github/workflows/windows-test-release.yml +++ /dev/null @@ -1,105 +0,0 @@ -name: Build Windows Desktop Test Release - -"on": - workflow_dispatch: - -permissions: - contents: write - -jobs: - build-windows: - name: Build Windows desktop shell - runs-on: windows-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - - - name: Set up Rust - uses: dtolnay/rust-toolchain@stable - - - name: Cache Rust build - uses: Swatinem/rust-cache@v2 - with: - workspaces: frontends/desktop/src-tauri -> target - - - name: Install desktop dependencies - working-directory: frontends/desktop - run: npm install - - - name: Build Windows bundle - working-directory: frontends/desktop - run: npm run tauri build -- --bundles nsis - - - name: Collect Windows executables and bundles - shell: pwsh - run: | - New-Item -ItemType Directory -Force -Path artifacts/windows | Out-Null - - $portableExe = "frontends/desktop/src-tauri/target/release/ga-desktop.exe" - if (!(Test-Path $portableExe)) { - Write-Error "Portable executable not found: $portableExe" - } - Copy-Item $portableExe -Destination "artifacts/windows/GenericAgent-Desktop-Windows-portable.exe" -Force - - $bundleRoot = "frontends/desktop/src-tauri/target/release/bundle" - if (Test-Path $bundleRoot) { - Get-ChildItem -Path $bundleRoot -Recurse -File | Where-Object { - $_.Extension -in ".exe", ".msi", ".zip" -or $_.FullName -match "nsis" - } | ForEach-Object { - Copy-Item $_.FullName -Destination "artifacts/windows/$($_.Name)" -Force - } - } - - Get-ChildItem -Path artifacts/windows -File | ForEach-Object { - $hash = Get-FileHash $_.FullName -Algorithm SHA256 - "{0} {1}" -f $hash.Hash.ToLowerInvariant(), $_.Name - } | Set-Content -Encoding UTF8 artifacts/windows/SHA256SUMS.txt - Get-ChildItem -Path artifacts/windows -File | Format-Table Name, Length - - - name: Upload workflow artifact - uses: actions/upload-artifact@v4 - with: - name: GenericAgent-Desktop-Windows-Test-${{ github.run_number }} - path: artifacts/windows/* - if-no-files-found: error - - - name: Create test pre-release - env: - GH_TOKEN: ${{ github.token }} - TAG_NAME: desktop-windows-test-${{ github.run_number }}-${{ github.run_attempt }} - RELEASE_TITLE: GenericAgent Desktop Windows Test Build ${{ github.run_number }} - shell: pwsh - run: | - $body = @" - # GenericAgent Desktop Windows test build - - **This is a test-only pre-release. Do not use it as a stable or production release.** - - - Branch: `${{ github.ref_name }}` - - Commit: `${{ github.sha }}` - - Workflow run: `${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}` - - Platform built in this workflow: Windows only - - Bundle type: Windows portable executable plus optional Tauri installer bundle - - Notes: - - Download `GenericAgent-Desktop-Windows-portable.exe` if you want the direct executable program shell. - - `*-setup.exe` files, if present, are installer bundles and are not the primary tester artifact. - - This release is used to collect Windows desktop shell artifacts for testing. - - macOS and Linux artifacts are intentionally not built by this first workflow. - - Testers should still verify installation, startup, and core desktop functions on real Windows machines. - - SHA256 checksums are included in `SHA256SUMS.txt`. - "@ - - gh release create $env:TAG_NAME artifacts/windows/* ` - --repo "${{ github.repository }}" ` - --target "${{ github.sha }}" ` - --title $env:RELEASE_TITLE ` - --notes $body ` - --prerelease