chore: update CI workflow to run on Windows and download yt-dlp binaries

This commit is contained in:
Nexmoe
2025-10-25 11:34:58 +08:00
parent d0bdfce803
commit 2b3edab4eb

View File

@@ -6,7 +6,7 @@ on:
jobs:
test:
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- name: Check out Git repository
@@ -25,11 +25,13 @@ jobs:
- name: Install Dependencies
run: pnpm install
- name: Type check
run: pnpm run typecheck
- name: Download yt-dlp binaries
run: |
# Download yt-dlp.exe for Windows
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe -o resources/yt-dlp.exe
- name: Lint and format check
run: pnpm run check
- name: Build check
run: pnpm run build
- name: build-win
run: pnpm run build:win