Skip to content

Commit c52633f

Browse files
committed
Fix building pickle.phar on Windows
1 parent e12334f commit c52633f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@ jobs:
3434
run: composer install --prefer-source --optimize-autoloader --ansi --no-interaction --no-dev
3535
- name: Install Box
3636
run: composer global require 'kherge/box=~2.7' --prefer-source
37-
- name: Build pickle.phar
38-
run: ~/.composer/vendor/bin/box build
37+
- name: Build pickle.phar on Ubuntu
38+
if: startsWith(matrix.os, 'ubuntu')
39+
run: |
40+
"$(composer global config bin-dir --absolute)/box" build
41+
- name: Build pickle.phar on Windows
42+
if: startsWith(matrix.os, 'windows')
43+
run: |
44+
& "$(composer global config bin-dir --absolute)/box.bat" build
3945
- name: Install Composer dependencies (including dev, preferring dist)
4046
run: composer install --optimize-autoloader --ansi --no-interaction
4147
- name: Run Behat

0 commit comments

Comments
 (0)