runner-images icon indicating copy to clipboard operation
runner-images copied to clipboard

Add `pwsh` to `ubuntu-slim`

Open mikeharder opened this issue 1 month ago • 6 comments

Tool name

pwsh

Tool license

MIT

Add or update?

  • [x] Add
  • [ ] Update

Desired version

latest

Approximate size

No response

Brief description of tool

No response

URL for tool's homepage

No response

Provide a basic test case to validate the tool's functionality.


Platforms where you need the tool

  • [ ] Azure DevOps
  • [x] GitHub Actions

Runner images where you need the tool

  • [ ] Ubuntu 22.04
  • [ ] Ubuntu 24.04
  • [x] Ubuntu Slim
  • [ ] macOS 13
  • [ ] macOS 13 Arm64
  • [ ] macOS 14
  • [ ] macOS 14 Arm64
  • [ ] macOS 15
  • [ ] macOS 15 Arm64
  • [ ] macOS 26 Arm64
  • [ ] Windows Server 2019
  • [ ] Windows Server 2022
  • [ ] Windows Server 2025

Can this tool be installed during the build?


Tool installation time in runtime

No response

Are you willing to submit a PR?

No response

mikeharder avatar Nov 21 '25 06:11 mikeharder

Hello @mikeharder, We'll consider your suggestion to add pwsh to the Slim image. However, adding many apps will turn the Slim image into a standard image, which is not the goal of creating a Slim image.

Alexey-Ayupov avatar Nov 21 '25 08:11 Alexey-Ayupov

@Alexey-Ayupov: In that case, could you consider offering both the ubuntu-slim and ubuntu-24.04 images on the 1 vCPU runners? I'd like to use a 1 vCPU runner, but still have all the same apps as the standard runners.

https://github.blog/changelog/2025-10-28-1-vcpu-linux-runner-now-available-in-github-actions-in-public-preview/

mikeharder avatar Nov 21 '25 16:11 mikeharder

I fully agree on this request. PowerShell (without any extra modules of course for size) would be a great addition to the slim runner.

Some of us (a lot?) are a lot better at shell pwsh than bash. A lot of our existing action code runs with pwsh as shell and with it on the slim image we can avoid porting it.

sumokadet avatar Dec 03 '25 15:12 sumokadet

Thanks for the requests, we chatted and agree. I'll be adding Powershell in the next image update to be rolled out early next week.

mitesch avatar Dec 04 '25 18:12 mitesch

Thanks for the requests, we chatted and agree. I'll be adding Powershell in the next image update to be rolled out early next week.

Great news - thank you!

sumokadet avatar Dec 05 '25 13:12 sumokadet

I pushed this image update to Monday. The image update is active in our test environments and, assuming everything looks good, I'll get it rolled out to production on Monday.

mitesch avatar Dec 12 '25 19:12 mitesch