Running the step with the action, I get error:
APM action failed: Unsupported platform: win32
With a simple setup:
jobs:
test:
runs-on: windows-latest
steps:
- name: Check out code
uses: actions/checkout
- name: Install APM
uses: microsoft/apm-action@v1
with:
apm-version: latest
setup-only: true
- run: apm install --frozen
Current setup step that works for me:
- name: Install APM (Windows)
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
$env:APM_INSTALL_DIR = Join-Path $env:RUNNER_TEMP 'apm\bin'
irm https://aka.ms/apm-windows | iex
$apmRoot = Split-Path $env:APM_INSTALL_DIR -Parent
Add-Content -Path $env:GITHUB_PATH -Value $env:APM_INSTALL_DIR
Add-Content -Path $env:GITHUB_PATH -Value (Join-Path $apmRoot 'current')
& (Join-Path $env:APM_INSTALL_DIR 'apm.cmd') --version
Running the step with the action, I get error:
With a simple setup:
Current setup step that works for me: