Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
ci(spaces): install the TrustedSigning module with retries before electron-builder (CUA-2066) (#5753)
Francesco Bonacci8e9c1fa2d4f1
diff --git a/.github/actions/spaces-native/action.yml b/.github/actions/spaces-native/action.ymlindex 1e910078c9..1d16072c16 100644--- a/.github/actions/spaces-native/action.yml+++ b/.github/actions/spaces-native/action.yml@@ -73,9 +73,9 @@ runs:with:workspaces: libs/cua -> targetshared-key: spaces-native-${{ inputs.label }}- # The repository's 10 GB Actions cache evicts oldest-first; a GB-sized- # dependency cache per job pushed the small compiled-output caches out- # within the hour. Only the default branch saves it.+ # The Actions cache limit is 50 GB (raised from 10 GB on 23 Oct 2026) and+ # evicts oldest-first. PR merge refs cannot restore main's entries, so+ # only the default branch saves the GB-sized dependency cache.save-if: ${{ github.ref == 'refs/heads/main' }}cache-on-failure: true- if: steps.cache.outputs.cache-hit != 'true'diff --git a/.github/workflows/cd-cua-spaces-build.yml b/.github/workflows/cd-cua-spaces-build.ymlindex 33073b85c6..60f6baf53b 100644--- a/.github/workflows/cd-cua-spaces-build.yml+++ b/.github/workflows/cd-cua-spaces-build.yml@@ -590,6 +590,27 @@ jobs:tenant-id: ${{ vars.AZURE_TENANT_ID }}subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}enable-AzPSSession: true+ # electron-builder installs the TrustedSigning module from the PowerShell+ # Gallery on first use and fails the whole build when the Gallery blips+ # (shadow build 39900294264). Install it here with retries instead.+ - name: Install the TrustedSigning module (with retries)+ if: steps.signing.outputs.azure == 'true'+ shell: pwsh+ run: |+ $ErrorActionPreference = 'Stop'+ foreach ($i in 1..4) {+ try {+ Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -Scope CurrentUser | Out-Null+ Install-Module -Name TrustedSigning -Scope CurrentUser -Force -Repository PSGallery+ Import-Module TrustedSigning+ Write-Host "TrustedSigning $((Get-Module TrustedSigning).Version) ready"+ exit 0+ } catch {+ Write-Host "attempt ${i} failed: $($_.Exception.Message)"+ Start-Sleep -Seconds (15 * $i)+ }+ }+ throw 'TrustedSigning module could not be installed'- name: Build and sign (electron-builder)env:SIGNED: ${{ steps.signing.outputs.azure }}diff --git a/.github/workflows/cd-cua-spaces.yml b/.github/workflows/cd-cua-spaces.ymlindex 357105489f..6624f0ed8e 100644--- a/.github/workflows/cd-cua-spaces.yml+++ b/.github/workflows/cd-cua-spaces.yml@@ -1493,6 +1493,27 @@ jobs:tenant-id: ${{ vars.AZURE_TENANT_ID }}subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}enable-AzPSSession: true+ # electron-builder installs the TrustedSigning module from the PowerShell+ # Gallery on first use and fails the whole build when the Gallery blips+ # (shadow build 39900294264). Install it here with retries instead.+ - name: Install the TrustedSigning module (with retries)+ if: steps.signing.outputs.azure == 'true'+ shell: pwsh+ run: |+ $ErrorActionPreference = 'Stop'+ foreach ($i in 1..4) {+ try {+ Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -Scope CurrentUser | Out-Null+ Install-Module -Name TrustedSigning -Scope CurrentUser -Force -Repository PSGallery+ Import-Module TrustedSigning+ Write-Host "TrustedSigning $((Get-Module TrustedSigning).Version) ready"+ exit 0+ } catch {+ Write-Host "attempt ${i} failed: $($_.Exception.Message)"+ Start-Sleep -Seconds (15 * $i)+ }+ }+ throw 'TrustedSigning module could not be installed'- name: Build and sign (electron-builder)env:SIGNED: ${{ steps.signing.outputs.azure }}