Is there support for `windows-latest` runner?

Open
#62 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
github-actions, powershell, typescript
Domain
ci-cd, devops

Research direction

Start by reproducing the provided workflow on a windows-latest runner and trace the setup step that reports "Unsupported platform: win32". Compare its behavior with the working PowerShell installation shown in the issue. Done means the action's setup-only path installs APM on windows-latest so the subsequent frozen install works without the workaround.

Written by the indexing model from the issue text.

Description

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
Dominant language
TypeScript
Stars
21
Forks
8
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/apm-action

All issues in microsoft/apm-action

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.