From c52633f0481da994f331ae2995d92014dad44dde Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Sun, 24 Jan 2021 12:25:52 +0100 Subject: [PATCH] Fix building pickle.phar on Windows --- .github/workflows/test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f38f8c36..e545b833 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,8 +34,14 @@ jobs: run: composer install --prefer-source --optimize-autoloader --ansi --no-interaction --no-dev - name: Install Box run: composer global require 'kherge/box=~2.7' --prefer-source - - name: Build pickle.phar - run: ~/.composer/vendor/bin/box build + - name: Build pickle.phar on Ubuntu + if: startsWith(matrix.os, 'ubuntu') + run: | + "$(composer global config bin-dir --absolute)/box" build + - name: Build pickle.phar on Windows + if: startsWith(matrix.os, 'windows') + run: | + & "$(composer global config bin-dir --absolute)/box.bat" build - name: Install Composer dependencies (including dev, preferring dist) run: composer install --optimize-autoloader --ansi --no-interaction - name: Run Behat