@@ -34,23 +34,26 @@ jobs:
34
34
add-to-path : false
35
35
36
36
- name : Explicitly running shell
37
- run : C:\cygwin\bin\bash -lc "echo 'Explicitly run shell'"
37
+ run : D:\cygwin\bin\bash -lc "echo 'Explicitly run shell'"
38
+
39
+ - name : Explicitly running shell via compat symlink
40
+ run : C:\cygwin\bin\bash -lc "echo 'Explicitly run shell (compat)'"
38
41
39
42
- name : Single-line inline shell
40
43
run : echo "Running in $(pwd)"
41
- shell : C :\cygwin\bin\bash.exe '{0}'
44
+ shell : D :\cygwin\bin\bash.exe '{0}'
42
45
43
46
- name : Multiline inline shell
44
47
run : >-
45
48
echo "Running in $(pwd)" &&
46
49
true
47
- shell : C :\cygwin\bin\bash.exe '{0}'
50
+ shell : D :\cygwin\bin\bash.exe '{0}'
48
51
49
52
- name : Shell script
50
- run : C :\cygwin\bin\bash.exe tests/script.sh
53
+ run : D :\cygwin\bin\bash.exe tests/script.sh
51
54
52
55
- name : Check requested packages got installed
53
- run : C :\cygwin\bin\sponge.exe tmp
56
+ run : D :\cygwin\bin\sponge.exe tmp
54
57
if : contains(matrix.packages, 'moreutils')
55
58
56
59
- name : Check PATH hasn't changed
@@ -119,6 +122,7 @@ jobs:
119
122
include :
120
123
- install-dir : C:\tools\cygwin
121
124
- install-dir : D:\cygwin64
125
+ fail-fast : false
122
126
123
127
steps :
124
128
- run : git config --global core.autocrlf input
@@ -149,6 +153,45 @@ jobs:
149
153
env :
150
154
SHELLOPTS : igncr
151
155
156
+ work-vol-test :
157
+ runs-on : windows-latest
158
+ name : ' Check work volume behaviour'
159
+
160
+ strategy :
161
+ matrix :
162
+ include :
163
+ - work-vol : ' C:'
164
+ - work-vol : ' D:'
165
+ fail-fast : false
166
+
167
+ steps :
168
+ - run : git config --global core.autocrlf input
169
+
170
+ - uses : actions/checkout@v4
171
+
172
+ - name : Install Cygwin
173
+ uses : ./
174
+ with :
175
+ work-vol : " ${{ matrix.work-vol }}"
176
+
177
+ - name : Check directory use
178
+ run : |
179
+ root_dir=$(cygpath -aw /)
180
+ echo "Installed in ${root_dir}"
181
+ if [[ "${root_dir}" != "${{ matrix.work-vol }}\cygwin" ]]; then
182
+ exit 1
183
+ fi
184
+
185
+ setup_file=$(cygpath -au ${{ matrix.work-vol }}\setup.exe)
186
+ echo "Setup should be stored at ${setup_file}"
187
+ if [[ ! -f ${setup_file} ]]; then
188
+ exit 1
189
+ fi
190
+
191
+ shell : bash
192
+ env :
193
+ SHELLOPTS : igncr
194
+
152
195
symlink-test :
153
196
runs-on : windows-latest
154
197
name : ' Check symlink type control'
@@ -159,6 +202,7 @@ jobs:
159
202
- symlink-type : native
160
203
- symlink-type : sys
161
204
- symlink-type : wsl
205
+ fail-fast : false
162
206
163
207
env :
164
208
CYGWIN : winsymlinks:${{ matrix.symlink-type }}
0 commit comments