mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
## Why Embedding reusable-workflow inputs directly in shell scripts can cause their contents to be interpreted as shell syntax. ## What changed - Export the Rust nextest target, profile, and test-thread inputs as environment variables before using them in Bash commands and paths. - Pass the MSVC target and host architecture to PowerShell through environment variables. GitOrigin-RevId: f96bbeeb7b556022e4bdea9db384a88f925050bf
21 lines
631 B
YAML
21 lines
631 B
YAML
name: setup-msvc-env
|
|
description: Expose an MSVC developer environment for the requested Windows target.
|
|
inputs:
|
|
target:
|
|
description: Rust target triple that will be built on this Windows runner.
|
|
required: true
|
|
host-arch:
|
|
description: Optional Visual Studio host architecture override.
|
|
required: false
|
|
default: ""
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Expose MSVC SDK environment
|
|
shell: pwsh
|
|
env:
|
|
HOST_ARCH: ${{ inputs.host-arch }}
|
|
TARGET: ${{ inputs.target }}
|
|
run: '& "$env:GITHUB_ACTION_PATH/setup-msvc-env.ps1" -Target "$env:TARGET" -HostArch "$env:HOST_ARCH"'
|