fix: release 1.33.1 patch (#8895)

This commit is contained in:
Lifei Zhou
2026-04-29 15:54:57 +10:00
committed by GitHub
parent 207a9988b8
commit e4ef5ea4aa
4 changed files with 9 additions and 32 deletions
-6
View File
@@ -63,12 +63,6 @@ jobs:
build-on: windows-latest
use-cross: false
variant: standard
- os: windows
architecture: x86_64
target-suffix: pc-windows-msvc
build-on: windows-latest
use-cross: false
variant: cuda
steps:
- name: Checkout code
+1 -9
View File
@@ -111,21 +111,13 @@ jobs:
version: ${{ needs.prepare-version.outputs.version }}
signing: false
bundle-desktop-windows-cuda:
needs: [prepare-version]
uses: ./.github/workflows/bundle-desktop-windows.yml
with:
version: ${{ needs.prepare-version.outputs.version }}
signing: false
windows_variant: cuda
# ------------------------------------
# 7) Create/Update GitHub Release
# ------------------------------------
release:
name: Release
runs-on: ubuntu-latest
needs: [build-cli, install-script, bundle-desktop, bundle-desktop-intel, bundle-desktop-linux, bundle-desktop-windows, bundle-desktop-windows-cuda]
needs: [build-cli, install-script, bundle-desktop, bundle-desktop-intel, bundle-desktop-linux, bundle-desktop-windows]
permissions:
contents: write
id-token: write # Required for Sigstore OIDC signing
+1 -12
View File
@@ -85,24 +85,13 @@ jobs:
signing: true
secrets: inherit
bundle-desktop-windows-cuda:
uses: ./.github/workflows/bundle-desktop-windows.yml
permissions:
id-token: write
contents: read
actions: read
with:
signing: true
windows_variant: cuda
secrets: inherit
# ------------------------------------
# 7) Create/Update GitHub Release
# ------------------------------------
release:
name: Release
runs-on: ubuntu-latest
needs: [build-cli, install-script, bundle-desktop, bundle-desktop-intel, bundle-desktop-linux, bundle-desktop-windows, bundle-desktop-windows-cuda]
needs: [build-cli, install-script, bundle-desktop, bundle-desktop-intel, bundle-desktop-linux, bundle-desktop-windows]
permissions:
contents: write
id-token: write # Required for Sigstore OIDC signing
+7 -5
View File
@@ -26,11 +26,7 @@ fn asset_name() -> &'static str {
{
"goose-aarch64-unknown-linux-gnu.tar.bz2"
}
#[cfg(all(target_os = "windows", target_arch = "x86_64", feature = "cuda"))]
{
"goose-x86_64-pc-windows-msvc-cuda.zip"
}
#[cfg(all(target_os = "windows", target_arch = "x86_64", not(feature = "cuda")))]
#[cfg(all(target_os = "windows", target_arch = "x86_64"))]
{
"goose-x86_64-pc-windows-msvc.zip"
}
@@ -558,6 +554,12 @@ mod tests {
assert!(name.ends_with(".tar.bz2"));
}
#[cfg(all(target_os = "windows", target_arch = "x86_64"))]
#[test]
fn test_windows_updates_use_standard_asset() {
assert_eq!(asset_name(), "goose-x86_64-pc-windows-msvc.zip");
}
#[test]
fn test_binary_name() {
let name = binary_name();