Skip to content

Is there support for windows-latest runner? #62

Description

@psychobolt

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions