Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use installed trusted signing (#34245)
Max Brunsfeld33f1ac8b3496
diff --git a/.github/actions/install_trusted_signing/action.yml b/.github/actions/install_trusted_signing/action.ymldeleted file mode 100644index a99ff08eb1e..00000000000--- a/.github/actions/install_trusted_signing/action.yml+++ /dev/null@@ -1,64 +0,0 @@-name: "Trusted Signing on Windows"-description: "Install trusted signing on Windows."--# Modified from https://github.com/Azure/trusted-signing-action-runs:- using: "composite"- steps:- - name: Set variables- id: set-variables- shell: "pwsh"- run: |- $defaultPath = $env:PSModulePath -split ';' | Select-Object -First 1- "PSMODULEPATH=$defaultPath" | Out-File -FilePath $env:GITHUB_OUTPUT -Append-- "TRUSTED_SIGNING_MODULE_VERSION=0.5.3" | Out-File -FilePath $env:GITHUB_OUTPUT -Append- "BUILD_TOOLS_NUGET_VERSION=10.0.22621.3233" | Out-File -FilePath $env:GITHUB_OUTPUT -Append- "TRUSTED_SIGNING_NUGET_VERSION=1.0.53" | Out-File -FilePath $env:GITHUB_OUTPUT -Append- "DOTNET_SIGNCLI_NUGET_VERSION=0.9.1-beta.24469.1" | Out-File -FilePath $env:GITHUB_OUTPUT -Append-- - name: Cache TrustedSigning PowerShell module- id: cache-module- uses: actions/cache@v4- env:- cache-name: cache-module- with:- path: ${{ steps.set-variables.outputs.PSMODULEPATH }}\TrustedSigning\${{ steps.set-variables.outputs.TRUSTED_SIGNING_MODULE_VERSION }}- key: TrustedSigning-${{ steps.set-variables.outputs.TRUSTED_SIGNING_MODULE_VERSION }}- if: ${{ inputs.cache-dependencies == 'true' }}-- - name: Cache Microsoft.Windows.SDK.BuildTools NuGet package- id: cache-buildtools- uses: actions/cache@v4- env:- cache-name: cache-buildtools- with:- path: ~\AppData\Local\TrustedSigning\Microsoft.Windows.SDK.BuildTools\Microsoft.Windows.SDK.BuildTools.${{ steps.set-variables.outputs.BUILD_TOOLS_NUGET_VERSION }}- key: Microsoft.Windows.SDK.BuildTools-${{ steps.set-variables.outputs.BUILD_TOOLS_NUGET_VERSION }}- if: ${{ inputs.cache-dependencies == 'true' }}-- - name: Cache Microsoft.Trusted.Signing.Client NuGet package- id: cache-tsclient- uses: actions/cache@v4- env:- cache-name: cache-tsclient- with:- path: ~\AppData\Local\TrustedSigning\Microsoft.Trusted.Signing.Client\Microsoft.Trusted.Signing.Client.${{ steps.set-variables.outputs.TRUSTED_SIGNING_NUGET_VERSION }}- key: Microsoft.Trusted.Signing.Client-${{ steps.set-variables.outputs.TRUSTED_SIGNING_NUGET_VERSION }}- if: ${{ inputs.cache-dependencies == 'true' }}-- - name: Cache SignCli NuGet package- id: cache-signcli- uses: actions/cache@v4- env:- cache-name: cache-signcli- with:- path: ~\AppData\Local\TrustedSigning\sign\sign.${{ steps.set-variables.outputs.DOTNET_SIGNCLI_NUGET_VERSION }}- key: SignCli-${{ steps.set-variables.outputs.DOTNET_SIGNCLI_NUGET_VERSION }}- if: ${{ inputs.cache-dependencies == 'true' }}-- - name: Install Trusted Signing module- shell: "pwsh"- run: |- Install-Module -Name TrustedSigning -RequiredVersion ${{ steps.set-variables.outputs.TRUSTED_SIGNING_MODULE_VERSION }} -Force -Repository PSGallery- if: ${{ inputs.cache-dependencies != 'true' || steps.cache-module.outputs.cache-hit != 'true' }}diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex ea30df1cc19..11ff9a4acc2 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -785,9 +785,6 @@ jobs:# This exports RELEASE_CHANNEL into env (GITHUB_ENV)script/determine-release-channel.ps1- - name: Install trusted signing- uses: ./.github/actions/install_trusted_signing-- name: Build Zed installerworking-directory: ${{ env.ZED_WORKSPACE }}run: script/bundle-windows.ps1diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.ymlindex df9f6ef40fc..4de22b05f2d 100644--- a/.github/workflows/release_nightly.yml+++ b/.github/workflows/release_nightly.yml@@ -276,9 +276,6 @@ jobs:Write-Host "Publishing version: $version on release channel nightly""nightly" | Set-Content -Path "crates/zed/RELEASE_CHANNEL"- - name: Install trusted signing- uses: ./.github/actions/install_trusted_signing-- name: Build Zed installerworking-directory: ${{ env.ZED_WORKSPACE }}run: script/bundle-windows.ps1