Skip to content

Commit

Permalink
Debug Get-Command.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jan 11, 2025
1 parent 6383cae commit b54e358
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/Pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ jobs:
if: matrix.os.name == 'Windows' && matrix.os.runtime == ''
shell: powershell
run: |
echo "PATH="
foreach ($p in $env:Path.Split(";")) { echo " $p" }
echo $(Get-Command ghdl).Source
ghdl --version
Expand Down
15 changes: 14 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,27 @@ runs:
echo "Downloading asset from '${DOWNLOAD_URL}' ..."
curl "${DOWNLOAD_URL}" -o ghdl.zip
dir
echo "Extracting zip file 'ghdl.zip' ..."
Expand-Archive "ghdl.zip"
dir
echo "pwd"
pwd
echo "ls ."
ls .
echo "ls bin"
ls bin
ls lib
echo "Removing zip file 'ghdl.zip' ..."
rm "ghdl.zip"
echo "Setting environment variable 'GHDL_PREFIX' ..."
echo "GHDL_PREFIX=$($(pwd).Path)\${{ inputs.install-directory }}\lib\ghdl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "GHDL_PREFIX=$($(pwd).Path)\lib\ghdl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "Adding GHDL to 'PATH' ..."
echo "$($(pwd).Path)\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
Expand Down

0 comments on commit b54e358

Please sign in to comment.