How to install on Microsoft Hosted Action Runners? #727
Answered
by
shivammathur
CxDevLead
asked this question in
Q&A / Help
-
I am trying to install PHP8.2 on Ubuntu 22 Microsoft hosted (Azure) action runner. This YAML code fails on the line
What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
shivammathur
May 9, 2023
Replies: 1 comment 1 reply
-
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.2
steps:
- 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"
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
CxDevLead
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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