Enable Rust in Authentication Package build (#31094)

This commit is contained in:
Przemko Robakowski 2023-08-28 23:06:18 +02:00 committed by GitHub
parent faa84e2e7d
commit 7b4c9f43d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View file

@ -473,6 +473,7 @@ steps:
- $TeleportSrc = "$Workspace/go/src/github.com/gravitational/teleport"
- . "$TeleportSrc/build.assets/windows/build.ps1"
- Enable-Go -ToolchainDir "$Workspace/toolchains"
- Enable-Rust -ToolchainDir "$Workspace/toolchains"
- cd $TeleportSrc
- $TeleportVersion=$(make print-version).Trim()
- cd "$TeleportSrc\e\windowsauth"
@ -751,6 +752,7 @@ steps:
- $TeleportSrc = "$Workspace/go/src/github.com/gravitational/teleport"
- . "$TeleportSrc/build.assets/windows/build.ps1"
- Enable-Go -ToolchainDir "$Workspace/toolchains"
- Enable-Rust -ToolchainDir "$Workspace/toolchains"
- cd $TeleportSrc
- $TeleportVersion=$(make print-version).Trim()
- cd "$TeleportSrc\e\windowsauth"
@ -17119,6 +17121,6 @@ image_pull_secrets:
- DOCKERHUB_CREDENTIALS
---
kind: signature
hmac: fe4b25966946166fea1be9a05da31480baa5963de4caf62ae985ff4327b55ce9
hmac: 38d88cfd48e6bd15c51a7d4bee1acd889330cc78b53720efdf713430702193a1
...

View file

@ -145,6 +145,8 @@ function Enable-Rust {
[string] $ToolchainDir
)
begin {
$Env:RUSTUP_HOME = "$ToolchainDir/rustup"
$Env:CARGO_HOME = "$ToolchainDir/cargo"
$Env:Path = "$ToolchainDir/cargo/bin;$Env:Path"
}
}

View file

@ -310,6 +310,7 @@ func buildWindowsAuthenticationPackageStep(workspace string) step {
`$TeleportSrc = "$Workspace` + teleportSrc + `"`,
`. "$TeleportSrc/build.assets/windows/build.ps1"`,
`Enable-Go -ToolchainDir "$Workspace` + toolchainDir + `"`,
`Enable-Rust -ToolchainDir "$Workspace` + toolchainDir + `"`,
`cd $TeleportSrc`,
`$TeleportVersion=$(make print-version).Trim()`,
`cd "$TeleportSrc\e\windowsauth"`,