Commit d7891cdb1d

d7891cdb1dc1e9f96d9c0c668824294d222f9deb

parent: 37b1bd758d

Unsigned

Wraient <wraient.911@gmail.com> · 2026-04-07 17:43 UTC

config: move mpv binaries to separate branch to reduce clone size

Layout: unified · split

.github/workflows/ci-cd.yml +21 −7
@@ -111,15 +111,29 @@ jobs:
111 with: 111 with:
112 fetch-depth: 0 112 fetch-depth: 0
113 113
114 - name: Download and extract MPV binary 114 - name: Checkout MPV binaries
115 uses: actions/checkout@v4
116 with:
117 ref: mpv-binaries
118 path: mpv-temp
119 sparse-checkout: |
120 Build/mpv.exe.gz
121 Build/mpv.zip
122
123 - name: Setup MPV binary
115 run: | 124 run: |
116 # Create directory if it doesn't exist
117 New-Item -ItemType Directory -Force -Path "Build\mpv" 125 New-Item -ItemType Directory -Force -Path "Build\mpv"
118 # Download the compressed MPV binary 126 if (Test-Path "mpv-temp/Build/mpv.exe.gz") {
119 Invoke-WebRequest -Uri "https://raw.githubusercontent.com/${{ github.repository }}/main/Build/mpv.exe.gz" -OutFile "Build\mpv\mpv.exe.gz" 127 Copy-Item "mpv-temp/Build/mpv.exe.gz" "Build\mpv\mpv.exe.gz"
120 # Extract using 7-Zip (built into Windows runners) 128 7z x "Build\mpv\mpv.exe.gz" -o"Build\mpv"
121 7z x "Build\mpv\mpv.exe.gz" -o"Build\mpv" 129 Remove-Item "Build\mpv\mpv.exe.gz"
122 Remove-Item "Build\mpv\mpv.exe.gz" 130 } else {
131 Write-Host "Warning: MPV binary not found in mpv-binaries branch, downloading from URL..."
132 Invoke-WebRequest -Uri "https://raw.githubusercontent.com/${{ github.repository }}/main/Build/mpv.exe.gz" -OutFile "Build\mpv\mpv.exe.gz"
133 7z x "Build\mpv\mpv.exe.gz" -o"Build\mpv"
134 Remove-Item "Build\mpv\mpv.exe.gz"
135 }
136 Remove-Item -Recurse -Force "mpv-temp" -ErrorAction SilentlyContinue
123 shell: pwsh 137 shell: pwsh
124 138
125 - name: Download Artifacts 139 - name: Download Artifacts
Build/mpv.exe.gz deleted

Binary file not shown.

Build/mpv.zip deleted

Binary file not shown.