From 0e3315f87c98078ee742c71d98250236658c631c Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sat, 11 Jan 2025 20:38:19 +0100 Subject: [PATCH] Debug Get-Command. --- .github/workflows/Pipeline.yml | 3 +++ action.yml | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml index e42b926..3a3d38d 100644 --- a/.github/workflows/Pipeline.yml +++ b/.github/workflows/Pipeline.yml @@ -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 diff --git a/action.yml b/action.yml index b2b29e2..69fa953 100644 --- a/action.yml +++ b/action.yml @@ -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