Fix "using Windows PHP in Cygwin"-check in shim script #115
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Builds | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build-and-deploy: | |
name: Build & deploy | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
install: | |
- "exe" | |
- "choco" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Compile Composer-Setup | |
run: iscc src\composer.iss | |
shell: cmd | |
- name: Build Chocolatey package | |
if: matrix.install == 'choco' | |
run: .\chocolatey\local\package.ps1 | |
- name: Install Composer-Setup.exe | |
if: matrix.install == 'exe' | |
run: builds\output\Composer-Setup.dev.exe /VERYSILENT /SUPPRESSMSGBOXES /DEV=C:\composer /LOG=C:\install.txt | |
shell: cmd | |
- name: Install Chocolatey package | |
if: matrix.install == 'choco' | |
# Upgrade as we are already installed. | |
run: choco upgrade -y composer --source .\chocolatey\local --params '"/Dev:C:\composer"' --ia '"/LOG=C:\install.txt"' | |
- name: Upload install log | |
uses: actions/upload-artifact@v2 | |
with: | |
name: install-${{ matrix.install }}-log | |
path: C:\install.txt | |
- name: Test install | |
run: | | |
Test-Path C:\composer\composer | |
Test-Path C:\composer\composer.bat | |
Test-Path C:\composer\composer.phar | |
- name: Prepend install location to PATH | |
# This is already in the registry PATH from the install but needs to be pulled in for subsequent Run steps. | |
run: echo "C:\composer" >> $GITHUB_PATH | |
- name: Run | |
run: composer --version | |
shell: cmd | |
- name: Run in bash | |
run: composer --version | |
shell: bash |