Skip to content

Commit 6e5dcc9

Browse files
committed
test
1 parent 2964257 commit 6e5dcc9

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

Diff for: action.yml

+15-9
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ inputs:
4545
runs:
4646
using: "composite"
4747
steps:
48-
- run: |
48+
- id: cyginst
49+
run: |
4950
$ErrorActionPreference = 'Stop'
5051
$platform = '${{ inputs.platform }}'
5152
$platform = $platform -replace '^(x64|amd64)$', 'x86_64'
@@ -85,6 +86,7 @@ runs:
8586
}
8687
8788
$installDir = '${{ inputs.install-dir }}' -ne '' ? '${{ inputs.install-dir }}' : "$vol\cygwin"
89+
echo "CYGROOT=$installDir" >> $GITHUB_ENV
8890
8991
$args = @(
9092
'-qnO',
@@ -133,17 +135,21 @@ runs:
133135
# because setup is a Windows GUI app, make it part of a pipeline to make
134136
# PowerShell wait for it to exit
135137
& $setupExe $args | Out-Default
136-
shell: pwsh
138+
# shell: pwsh
137139

138-
- if: ${{ inputs.add-to-path == 'true' }}
139-
run: |
140-
$installDir = '${{ inputs.install-dir }}' -ne '' ? '${{ inputs.install-dir }}' : '${{ inputs.work-vol }}\cygwin'
141-
echo "$installDir\bin" >> $env:GITHUB_PATH
142-
shell: pwsh
140+
#- if: ${{ inputs.add-to-path == 'true' }}
141+
# run: |
142+
# $installDir = '${{ inputs.install-dir }}' -ne '' ? '${{ inputs.install-dir }}' : '${{ inputs.work-vol }}\cygwin'
143+
#if ('${{ inputs.add-to-path }}' -eq $true) {
144+
# echo "${installDir}\\bin" >> $env:GITHUB_PATH
145+
#}
146+
echo "$installDir\bin"
147+
# shell: pwsh
143148

144-
- run: |
149+
#- run: |
145150
# run login shell to copy skeleton profile files
146-
$installDir = '${{ inputs.install-dir }}' -ne '' ? '${{ inputs.install-dir }}' : '${{ inputs.work-vol }}\cygwin'
151+
# echo "${CYGROOT}\bin"
152+
# $installDir = '${{ inputs.install-dir }}' -ne '' ? '${{ inputs.install-dir }}' : '${{ inputs.work-vol }}\cygwin'
147153
& "$installDir\bin\bash.exe" --login
148154
shell: pwsh
149155

0 commit comments

Comments
 (0)