mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
Pass CI workflow inputs through environment variables (#39717)
## 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
This commit is contained in:
committed by
copyberry
parent
4a942885c8
commit
2c74b56fcd
5
.github/actions/setup-msvc-env/action.yml
vendored
5
.github/actions/setup-msvc-env/action.yml
vendored
@@ -14,4 +14,7 @@ runs:
|
||||
steps:
|
||||
- name: Expose MSVC SDK environment
|
||||
shell: pwsh
|
||||
run: '& "$env:GITHUB_ACTION_PATH/setup-msvc-env.ps1" -Target "${{ inputs.target }}" -HostArch "${{ inputs.host-arch }}"'
|
||||
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"'
|
||||
|
||||
Reference in New Issue
Block a user