Skip to content

setup-yak fails on windows-latest: wmic not found #6

@kpanko-island

Description

@kpanko-island

Description

The action fails on windows-latest GitHub Actions runners because it uses wmic, which has been removed from newer Windows Server images.

Error

Error: Command failed: wmic datafile where name="D:\a\_temp\6c3a6121-b0a3-47e4-b41f-6f88262ce79f"
'wmic' is not recognized as an internal or external command,
operable program or batch file.

Steps to reproduce

Use paramdigma/setup-yak@1.0.0 in a workflow running on windows-latest:

jobs:
  build:
    runs-on: windows-latest
    steps:
      - uses: paramdigma/setup-yak@1.0.0

Workaround

Download yak.exe directly instead:

- name: Install Yak
  shell: pwsh
  run: |
    $url = "https://files.mcneel.com/yak/tools/latest/yak.exe"
    Invoke-WebRequest $url -OutFile yak.exe

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions