Skip to content

Commit

Permalink
Finishing up adding Step CLI to PATH in Windows GitHub Runners
Browse files Browse the repository at this point in the history
  • Loading branch information
jrnelson90 committed Dec 1, 2023
1 parent e096555 commit 3f2054e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/4_6_2_Core_Unit_Tests_Win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ jobs:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Setup Step CLI
run: powershell -Command "Invoke-WebRequest -Method 'GET' -uri 'https://dl.smallstep.com/gh-release/cli/docs-cli-install/v0.24.4/step_windows_0.24.4_amd64.zip' -Outfile 'C:\temp\step_windows_0.24.4_amd64.zip'" && tar -oxzf C:\temp\step_windows_0.24.4_amd64.zip -C "C:\Program Files" && setx /M PATH "%PATH%;C:\Program Files\step_0.24.4\bin"
run: "Invoke-WebRequest -Method 'GET' -uri 'https://dl.smallstep.com/gh-release/cli/docs-cli-install/v0.24.4/step_windows_0.24.4_amd64.zip' -Outfile 'C:\\temp\\step_windows_0.24.4_amd64.zip'; tar -oxzf C:\\temp\\step_windows_0.24.4_amd64.zip -C 'C:\\Program Files';"

- name: Add Step CLI to PATH
run: echo "C:\Program Files\step_0.24.4\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: Validate Step CLI Install
run: dir "C:\Program Files\step_0.24.4" && [Environment]::GetEnvironmentVariable("Path") -split ";" && [Environment]::GetEnvironmentVariable("GITHUB_PATH") -split ";"

- name: Pull step-ca Docker Image
run: docker pull jrnelson90/step-ca-win
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/8_0_Core_Unit_Tests_Win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ jobs:
run: "Invoke-WebRequest -Method 'GET' -uri 'https://dl.smallstep.com/gh-release/cli/docs-cli-install/v0.24.4/step_windows_0.24.4_amd64.zip' -Outfile 'C:\\temp\\step_windows_0.24.4_amd64.zip'; tar -oxzf C:\\temp\\step_windows_0.24.4_amd64.zip -C 'C:\\Program Files';"

- name: Add Step CLI to PATH
run: echo "C:\\Program Files\\step_0.24.4\\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
run: echo "C:\Program Files\step_0.24.4\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: Validate Step CLI Install
run: dir "C:\\Program Files\\step_0.24.4" && [Environment]::GetEnvironmentVariable("Path") -split ";" && [Environment]::GetEnvironmentVariable("GITHUB_PATH") -split ";"
run: dir "C:\Program Files\step_0.24.4" && [Environment]::GetEnvironmentVariable("Path") -split ";" && [Environment]::GetEnvironmentVariable("GITHUB_PATH") -split ";"

- name: Pull step-ca Docker Image
run: docker pull jrnelson90/step-ca-win
Expand Down

0 comments on commit 3f2054e

Please sign in to comment.