Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to install on Microsoft Hosted Action Runners?#727

Discussion options

I am trying to install PHP8.2 on Ubuntu 22 Microsoft hosted (Azure) action runner.

This YAML code fails on the line-name: Setup PHP

pool:  vmImage: 'ubuntu-22.04'variables:  phpVersion: 8.2steps:  - name: Setup PHP    id: setup-php    uses: shivammathur/setup-php@v2    displayName: 'Setup PHP version $(phpVersion)'    with:      php-version: '$(phpVersion)'      coverage: none

What am I doing wrong?

You must be logged in to vote

@CxDevLead

Azure pipelines are not supported directly as github actions don't work there.

We do have a wrapper around the action if you want to use it -shivammathur/spc

Although I haven't tested this in Azure Pipelines, it should work

pool:vmImage:'ubuntu-22.04'variables:phpVersion:8.2steps:  -displayName:'Setup PHP version $(phpVersion)'script:|      curl -sL https://github.com/shivammathur/spc/releases/latest/download/spc -o spc      chmod +x spc      sudo mv spc /usr/local/bin/      spc --php-version "$(phpVersion)" --coverage "none"

Replies: 1 comment 1 reply

Comment options

@CxDevLead

Azure pipelines are not supported directly as github actions don't work there.

We do have a wrapper around the action if you want to use it -shivammathur/spc

Although I haven't tested this in Azure Pipelines, it should work

pool:vmImage:'ubuntu-22.04'variables:phpVersion:8.2steps:  -displayName:'Setup PHP version $(phpVersion)'script:|      curl -sL https://github.com/shivammathur/spc/releases/latest/download/spc -o spc      chmod +x spc      sudo mv spc /usr/local/bin/      spc --php-version "$(phpVersion)" --coverage "none"
You must be logged in to vote
1 reply
@CxDevLead
Comment options

This worked, thank you very much

Answer selected byCxDevLead
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
2 participants
@CxDevLead@shivammathur

[8]ページ先頭

©2009-2025 Movatter.jp