@@ -45,7 +45,8 @@ inputs:
45
45
runs :
46
46
using : " composite"
47
47
steps :
48
- - run : |
48
+ - id : cyginst
49
+ run : |
49
50
$ErrorActionPreference = 'Stop'
50
51
$platform = '${{ inputs.platform }}'
51
52
$platform = $platform -replace '^(x64|amd64)$', 'x86_64'
85
86
}
86
87
87
88
$installDir = '${{ inputs.install-dir }}' -ne '' ? '${{ inputs.install-dir }}' : "$vol\cygwin"
89
+ echo "CYGROOT=$installDir" >> $GITHUB_ENV
88
90
89
91
$args = @(
90
92
'-qnO',
@@ -133,17 +135,21 @@ runs:
133
135
# because setup is a Windows GUI app, make it part of a pipeline to make
134
136
# PowerShell wait for it to exit
135
137
& $setupExe $args | Out-Default
136
- shell: pwsh
138
+ # shell: pwsh
137
139
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
143
148
144
- - run : |
149
+ # - run: |
145
150
# 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'
147
153
& "$installDir\bin\bash.exe" --login
148
154
shell : pwsh
149
155
0 commit comments