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 0e3315f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
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
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,17 @@ runs:
curl "${DOWNLOAD_URL}" -o ghdl.zip
echo "Extracting zip file 'ghdl.zip' ..."
Expand-Archive "ghdl.zip"
Expand-Archive -Path "ghdl.zip" -DestinationPath "."
ls
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 0e3315f

Please sign in to comment.