Commit 85fb2bb96f
Unsigned
Layout: unified · split
.github/workflows/ci-cd.yml +21 −7
| @@ -111,15 +111,29 @@ jobs: | ||
| 111 | 111 | with: |
| 112 | 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 | 124 | run: | |
| 116 | # Create directory if it doesn't exist | |
| 117 | 125 | New-Item -ItemType Directory -Force -Path "Build\mpv" |
| 118 | # Download the compressed MPV binary | |
| 119 | Invoke-WebRequest -Uri "https://raw.githubusercontent.com/${{ github.repository }}/main/Build/mpv.exe.gz" -OutFile "Build\mpv\mpv.exe.gz" | |
| 120 | # Extract using 7-Zip (built into Windows runners) | |
| 121 | 7z x "Build\mpv\mpv.exe.gz" -o"Build\mpv" | |
| 122 | Remove-Item "Build\mpv\mpv.exe.gz" | |
| 126 | if (Test-Path "mpv-temp/Build/mpv.exe.gz") { | |
| 127 | Copy-Item "mpv-temp/Build/mpv.exe.gz" "Build\mpv\mpv.exe.gz" | |
| 128 | 7z x "Build\mpv\mpv.exe.gz" -o"Build\mpv" | |
| 129 | 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 | 137 | shell: pwsh |
| 124 | 138 | |
| 125 | 139 | - name: Download Artifacts |