Skip to content

Commit a1dc50f

Browse files
committed
Add Windows
1 parent f05b9cf commit a1dc50f

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ env:
1212

1313
jobs:
1414
check-install:
15-
runs-on: [ubuntu-latest, macos-latest]
16-
steps:
17-
- uses: actions/checkout@v4
18-
with:
19-
path: action
15+
runs-on: [ubuntu-latest, macos-latest, windows-latest]
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
path: action
2020

21-
- uses: ./action
21+
- uses: ./action
2222

23-
- run: uv --version
23+
- run: uv --version

action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@ runs:
1111
using: composite
1212

1313
steps:
14-
- name: Install uv
14+
- name: Install uv on Linux or macOS
1515
run: curl -LsSf https://astral.sh/uv/install.sh | bash
1616
shell: bash
17+
if: runner.os != 'Windows'
18+
19+
- name: Install uv on Windows
20+
run: irm https://astral.sh/uv/install.ps1 | iex
21+
shell: pwsh
22+
if: runner.os == 'Windows'
1723

1824
- name: Find uv cache
1925
run: echo "UV_CACHE=$(uv cache dir)" >>$GITHUB_ENV

0 commit comments

Comments
 (0)