build.yml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. name: Build Artifacts
  2. on:
  3. workflow_call:
  4. inputs:
  5. version:
  6. required: true
  7. type: string
  8. channel:
  9. required: false
  10. default: stable
  11. type: string
  12. unix:
  13. default: true
  14. type: boolean
  15. linux_static:
  16. default: true
  17. type: boolean
  18. linux_arm:
  19. default: true
  20. type: boolean
  21. macos:
  22. default: true
  23. type: boolean
  24. macos_legacy:
  25. default: true
  26. type: boolean
  27. windows:
  28. default: true
  29. type: boolean
  30. windows32:
  31. default: true
  32. type: boolean
  33. origin:
  34. required: false
  35. default: ''
  36. type: string
  37. secrets:
  38. GPG_SIGNING_KEY:
  39. required: false
  40. workflow_dispatch:
  41. inputs:
  42. version:
  43. description: |
  44. VERSION: yyyy.mm.dd[.rev] or rev
  45. required: true
  46. type: string
  47. channel:
  48. description: |
  49. SOURCE of this build's updates: stable/nightly/master/<repo>
  50. required: true
  51. default: stable
  52. type: string
  53. unix:
  54. description: yt-dlp, yt-dlp.tar.gz
  55. default: true
  56. type: boolean
  57. linux_static:
  58. description: yt-dlp_linux
  59. default: true
  60. type: boolean
  61. linux_arm:
  62. description: yt-dlp_linux_aarch64, yt-dlp_linux_armv7l
  63. default: true
  64. type: boolean
  65. macos:
  66. description: yt-dlp_macos, yt-dlp_macos.zip
  67. default: true
  68. type: boolean
  69. macos_legacy:
  70. description: yt-dlp_macos_legacy
  71. default: true
  72. type: boolean
  73. windows:
  74. description: yt-dlp.exe, yt-dlp_win.zip
  75. default: true
  76. type: boolean
  77. windows32:
  78. description: yt-dlp_x86.exe
  79. default: true
  80. type: boolean
  81. origin:
  82. description: Origin
  83. required: false
  84. default: 'current repo'
  85. type: choice
  86. options:
  87. - 'current repo'
  88. permissions:
  89. contents: read
  90. jobs:
  91. process:
  92. runs-on: ubuntu-latest
  93. outputs:
  94. origin: ${{ steps.process_origin.outputs.origin }}
  95. steps:
  96. - name: Process origin
  97. id: process_origin
  98. run: |
  99. echo "origin=${{ inputs.origin == 'current repo' && github.repository || inputs.origin }}" | tee "$GITHUB_OUTPUT"
  100. unix:
  101. needs: process
  102. if: inputs.unix
  103. runs-on: ubuntu-latest
  104. steps:
  105. - uses: actions/checkout@v4
  106. with:
  107. fetch-depth: 0 # Needed for changelog
  108. - uses: actions/setup-python@v5
  109. with:
  110. python-version: "3.10"
  111. - name: Install Requirements
  112. run: |
  113. sudo apt -y install zip pandoc man sed
  114. - name: Prepare
  115. run: |
  116. python devscripts/update-version.py -c "${{ inputs.channel }}" -r "${{ needs.process.outputs.origin }}" "${{ inputs.version }}"
  117. python devscripts/update_changelog.py -vv
  118. python devscripts/make_lazy_extractors.py
  119. - name: Build Unix platform-independent binary
  120. run: |
  121. make all tar
  122. - name: Verify --update-to
  123. if: vars.UPDATE_TO_VERIFICATION
  124. run: |
  125. chmod +x ./yt-dlp
  126. cp ./yt-dlp ./yt-dlp_downgraded
  127. version="$(./yt-dlp --version)"
  128. ./yt-dlp_downgraded -v --update-to yt-dlp/yt-dlp@2023.03.04
  129. downgraded_version="$(./yt-dlp_downgraded --version)"
  130. [[ "$version" != "$downgraded_version" ]]
  131. - name: Upload artifacts
  132. uses: actions/upload-artifact@v4
  133. with:
  134. name: build-bin-${{ github.job }}
  135. path: |
  136. yt-dlp
  137. yt-dlp.tar.gz
  138. compression-level: 0
  139. linux_static:
  140. needs: process
  141. if: inputs.linux_static
  142. runs-on: ubuntu-latest
  143. steps:
  144. - uses: actions/checkout@v4
  145. - name: Build static executable
  146. env:
  147. channel: ${{ inputs.channel }}
  148. origin: ${{ needs.process.outputs.origin }}
  149. version: ${{ inputs.version }}
  150. run: |
  151. mkdir ~/build
  152. cd bundle/docker
  153. docker compose up --build static
  154. sudo chown "${USER}:docker" ~/build/yt-dlp_linux
  155. - name: Verify --update-to
  156. if: vars.UPDATE_TO_VERIFICATION
  157. run: |
  158. chmod +x ~/build/yt-dlp_linux
  159. cp ~/build/yt-dlp_linux ~/build/yt-dlp_linux_downgraded
  160. version="$(~/build/yt-dlp_linux --version)"
  161. ~/build/yt-dlp_linux_downgraded -v --update-to yt-dlp/yt-dlp@2023.03.04
  162. downgraded_version="$(~/build/yt-dlp_linux_downgraded --version)"
  163. [[ "$version" != "$downgraded_version" ]]
  164. - name: Upload artifacts
  165. uses: actions/upload-artifact@v4
  166. with:
  167. name: build-bin-${{ github.job }}
  168. path: |
  169. ~/build/yt-dlp_linux
  170. compression-level: 0
  171. linux_arm:
  172. needs: process
  173. if: inputs.linux_arm
  174. permissions:
  175. contents: read
  176. packages: write # for creating cache
  177. runs-on: ubuntu-latest
  178. strategy:
  179. matrix:
  180. architecture:
  181. - armv7
  182. - aarch64
  183. steps:
  184. - uses: actions/checkout@v4
  185. with:
  186. path: ./repo
  187. - name: Virtualized Install, Prepare & Build
  188. uses: yt-dlp/run-on-arch-action@v2
  189. with:
  190. # Ref: https://github.com/uraimo/run-on-arch-action/issues/55
  191. env: |
  192. GITHUB_WORKFLOW: build
  193. githubToken: ${{ github.token }} # To cache image
  194. arch: ${{ matrix.architecture }}
  195. distro: ubuntu20.04 # Standalone executable should be built on minimum supported OS
  196. dockerRunArgs: --volume "${PWD}/repo:/repo"
  197. install: | # Installing Python 3.10 from the Deadsnakes repo raises errors
  198. apt update
  199. apt -y install zlib1g-dev libffi-dev python3.9 python3.9-dev python3.9-distutils python3-pip \
  200. python3-secretstorage # Cannot build cryptography wheel in virtual armv7 environment
  201. python3.9 -m pip install -U pip wheel 'setuptools>=71.0.2'
  202. # XXX: Keep this in sync with pyproject.toml (it can't be accessed at this stage) and exclude secretstorage
  203. python3.9 -m pip install -U Pyinstaller mutagen pycryptodomex brotli certifi cffi \
  204. 'requests>=2.32.2,<3' 'urllib3>=1.26.17,<3' 'websockets>=13.0'
  205. run: |
  206. cd repo
  207. python3.9 devscripts/install_deps.py -o --include build
  208. python3.9 devscripts/install_deps.py --include pyinstaller # Cached versions may be out of date
  209. python3.9 devscripts/update-version.py -c "${{ inputs.channel }}" -r "${{ needs.process.outputs.origin }}" "${{ inputs.version }}"
  210. python3.9 devscripts/make_lazy_extractors.py
  211. python3.9 -m bundle.pyinstaller
  212. if ${{ vars.UPDATE_TO_VERIFICATION && 'true' || 'false' }}; then
  213. arch="${{ (matrix.architecture == 'armv7' && 'armv7l') || matrix.architecture }}"
  214. chmod +x ./dist/yt-dlp_linux_${arch}
  215. cp ./dist/yt-dlp_linux_${arch} ./dist/yt-dlp_linux_${arch}_downgraded
  216. version="$(./dist/yt-dlp_linux_${arch} --version)"
  217. ./dist/yt-dlp_linux_${arch}_downgraded -v --update-to yt-dlp/yt-dlp@2023.03.04
  218. downgraded_version="$(./dist/yt-dlp_linux_${arch}_downgraded --version)"
  219. [[ "$version" != "$downgraded_version" ]]
  220. fi
  221. - name: Upload artifacts
  222. uses: actions/upload-artifact@v4
  223. with:
  224. name: build-bin-linux_${{ matrix.architecture }}
  225. path: | # run-on-arch-action designates armv7l as armv7
  226. repo/dist/yt-dlp_linux_${{ (matrix.architecture == 'armv7' && 'armv7l') || matrix.architecture }}
  227. compression-level: 0
  228. macos:
  229. needs: process
  230. if: inputs.macos
  231. permissions:
  232. contents: read
  233. actions: write # For cleaning up cache
  234. runs-on: macos-13
  235. steps:
  236. - uses: actions/checkout@v4
  237. # NB: Building universal2 does not work with python from actions/setup-python
  238. - name: Restore cached requirements
  239. id: restore-cache
  240. uses: actions/cache/restore@v4
  241. env:
  242. SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
  243. with:
  244. path: |
  245. ~/yt-dlp-build-venv
  246. key: cache-reqs-${{ github.job }}
  247. - name: Install Requirements
  248. run: |
  249. brew install coreutils
  250. python3 -m venv ~/yt-dlp-build-venv
  251. source ~/yt-dlp-build-venv/bin/activate
  252. python3 devscripts/install_deps.py -o --include build
  253. python3 devscripts/install_deps.py --print --include pyinstaller > requirements.txt
  254. # We need to ignore wheels otherwise we break universal2 builds
  255. python3 -m pip install -U --no-binary :all: -r requirements.txt
  256. # We need to fuse our own universal2 wheels for curl_cffi
  257. python3 -m pip install -U 'delocate==0.11.0'
  258. mkdir curl_cffi_whls curl_cffi_universal2
  259. python3 devscripts/install_deps.py --print -o --include curl-cffi > requirements.txt
  260. for platform in "macosx_11_0_arm64" "macosx_11_0_x86_64"; do
  261. python3 -m pip download \
  262. --only-binary=:all: \
  263. --platform "${platform}" \
  264. -d curl_cffi_whls \
  265. -r requirements.txt
  266. done
  267. ( # Overwrite x86_64-only libs with fat/universal2 libs or else Pyinstaller will do the opposite
  268. # See https://github.com/yt-dlp/yt-dlp/pull/10069
  269. cd curl_cffi_whls
  270. mkdir -p curl_cffi/.dylibs
  271. python_libdir=$(python3 -c 'import sys; from pathlib import Path; print(Path(sys.path[1]).parent)')
  272. for dylib in lib{ssl,crypto}.3.dylib; do
  273. cp "${python_libdir}/${dylib}" "curl_cffi/.dylibs/${dylib}"
  274. for wheel in curl_cffi*macos*x86_64.whl; do
  275. zip "${wheel}" "curl_cffi/.dylibs/${dylib}"
  276. done
  277. done
  278. )
  279. python3 -m delocate.cmd.delocate_fuse curl_cffi_whls/curl_cffi*.whl -w curl_cffi_universal2
  280. python3 -m delocate.cmd.delocate_fuse curl_cffi_whls/cffi*.whl -w curl_cffi_universal2
  281. for wheel in curl_cffi_universal2/*cffi*.whl; do
  282. mv -n -- "${wheel}" "${wheel/x86_64/universal2}"
  283. done
  284. python3 -m pip install --force-reinstall -U curl_cffi_universal2/*cffi*.whl
  285. - name: Prepare
  286. run: |
  287. python3 devscripts/update-version.py -c "${{ inputs.channel }}" -r "${{ needs.process.outputs.origin }}" "${{ inputs.version }}"
  288. python3 devscripts/make_lazy_extractors.py
  289. - name: Build
  290. run: |
  291. source ~/yt-dlp-build-venv/bin/activate
  292. python3 -m bundle.pyinstaller --target-architecture universal2 --onedir
  293. (cd ./dist/yt-dlp_macos && zip -r ../yt-dlp_macos.zip .)
  294. python3 -m bundle.pyinstaller --target-architecture universal2
  295. - name: Verify --update-to
  296. if: vars.UPDATE_TO_VERIFICATION
  297. run: |
  298. chmod +x ./dist/yt-dlp_macos
  299. cp ./dist/yt-dlp_macos ./dist/yt-dlp_macos_downgraded
  300. version="$(./dist/yt-dlp_macos --version)"
  301. ./dist/yt-dlp_macos_downgraded -v --update-to yt-dlp/yt-dlp@2023.03.04
  302. downgraded_version="$(./dist/yt-dlp_macos_downgraded --version)"
  303. [[ "$version" != "$downgraded_version" ]]
  304. - name: Upload artifacts
  305. uses: actions/upload-artifact@v4
  306. with:
  307. name: build-bin-${{ github.job }}
  308. path: |
  309. dist/yt-dlp_macos
  310. dist/yt-dlp_macos.zip
  311. compression-level: 0
  312. - name: Cleanup cache
  313. if: steps.restore-cache.outputs.cache-hit == 'true'
  314. env:
  315. GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  316. cache_key: cache-reqs-${{ github.job }}
  317. repository: ${{ github.repository }}
  318. branch: ${{ github.ref }}
  319. run: |
  320. gh extension install actions/gh-actions-cache
  321. gh actions-cache delete "${cache_key}" -R "${repository}" -B "${branch}" --confirm
  322. - name: Cache requirements
  323. uses: actions/cache/save@v4
  324. with:
  325. path: |
  326. ~/yt-dlp-build-venv
  327. key: cache-reqs-${{ github.job }}
  328. macos_legacy:
  329. needs: process
  330. if: inputs.macos_legacy
  331. runs-on: macos-13
  332. steps:
  333. - uses: actions/checkout@v4
  334. - name: Install Python
  335. # We need the official Python, because the GA ones only support newer macOS versions
  336. env:
  337. PYTHON_VERSION: 3.10.5
  338. MACOSX_DEPLOYMENT_TARGET: 10.9 # Used up by the Python build tools
  339. run: |
  340. # Hack to get the latest patch version. Uncomment if needed
  341. #brew install python@3.10
  342. #export PYTHON_VERSION=$( $(brew --prefix)/opt/python@3.10/bin/python3 --version | cut -d ' ' -f 2 )
  343. curl "https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}-macos11.pkg" -o "python.pkg"
  344. sudo installer -pkg python.pkg -target /
  345. python3 --version
  346. - name: Install Requirements
  347. run: |
  348. brew install coreutils
  349. python3 devscripts/install_deps.py --user -o --include build
  350. python3 devscripts/install_deps.py --user --include pyinstaller
  351. - name: Prepare
  352. run: |
  353. python3 devscripts/update-version.py -c "${{ inputs.channel }}" -r "${{ needs.process.outputs.origin }}" "${{ inputs.version }}"
  354. python3 devscripts/make_lazy_extractors.py
  355. - name: Build
  356. run: |
  357. python3 -m bundle.pyinstaller
  358. mv dist/yt-dlp_macos dist/yt-dlp_macos_legacy
  359. - name: Verify --update-to
  360. if: vars.UPDATE_TO_VERIFICATION
  361. run: |
  362. chmod +x ./dist/yt-dlp_macos_legacy
  363. cp ./dist/yt-dlp_macos_legacy ./dist/yt-dlp_macos_legacy_downgraded
  364. version="$(./dist/yt-dlp_macos_legacy --version)"
  365. ./dist/yt-dlp_macos_legacy_downgraded -v --update-to yt-dlp/yt-dlp@2023.03.04
  366. downgraded_version="$(./dist/yt-dlp_macos_legacy_downgraded --version)"
  367. [[ "$version" != "$downgraded_version" ]]
  368. - name: Upload artifacts
  369. uses: actions/upload-artifact@v4
  370. with:
  371. name: build-bin-${{ github.job }}
  372. path: |
  373. dist/yt-dlp_macos_legacy
  374. compression-level: 0
  375. windows:
  376. needs: process
  377. if: inputs.windows
  378. runs-on: windows-latest
  379. steps:
  380. - uses: actions/checkout@v4
  381. - uses: actions/setup-python@v5
  382. with:
  383. python-version: "3.10"
  384. - name: Install Requirements
  385. run: | # Custom pyinstaller built with https://github.com/yt-dlp/pyinstaller-builds
  386. python devscripts/install_deps.py -o --include build
  387. python devscripts/install_deps.py --include curl-cffi
  388. python -m pip install -U "https://yt-dlp.github.io/Pyinstaller-Builds/x86_64/pyinstaller-6.11.1-py3-none-any.whl"
  389. - name: Prepare
  390. run: |
  391. python devscripts/update-version.py -c "${{ inputs.channel }}" -r "${{ needs.process.outputs.origin }}" "${{ inputs.version }}"
  392. python devscripts/make_lazy_extractors.py
  393. - name: Build
  394. run: |
  395. python -m bundle.pyinstaller
  396. python -m bundle.pyinstaller --onedir
  397. Compress-Archive -Path ./dist/yt-dlp/* -DestinationPath ./dist/yt-dlp_win.zip
  398. - name: Verify --update-to
  399. if: vars.UPDATE_TO_VERIFICATION
  400. run: |
  401. foreach ($name in @("yt-dlp")) {
  402. Copy-Item "./dist/${name}.exe" "./dist/${name}_downgraded.exe"
  403. $version = & "./dist/${name}.exe" --version
  404. & "./dist/${name}_downgraded.exe" -v --update-to yt-dlp/yt-dlp@2023.03.04
  405. $downgraded_version = & "./dist/${name}_downgraded.exe" --version
  406. if ($version -eq $downgraded_version) {
  407. exit 1
  408. }
  409. }
  410. - name: Upload artifacts
  411. uses: actions/upload-artifact@v4
  412. with:
  413. name: build-bin-${{ github.job }}
  414. path: |
  415. dist/yt-dlp.exe
  416. dist/yt-dlp_win.zip
  417. compression-level: 0
  418. windows32:
  419. needs: process
  420. if: inputs.windows32
  421. runs-on: windows-latest
  422. steps:
  423. - uses: actions/checkout@v4
  424. - uses: actions/setup-python@v5
  425. with:
  426. python-version: "3.10"
  427. architecture: "x86"
  428. - name: Install Requirements
  429. run: |
  430. python devscripts/install_deps.py -o --include build
  431. python devscripts/install_deps.py
  432. python -m pip install -U "https://yt-dlp.github.io/Pyinstaller-Builds/i686/pyinstaller-6.11.1-py3-none-any.whl"
  433. - name: Prepare
  434. run: |
  435. python devscripts/update-version.py -c "${{ inputs.channel }}" -r "${{ needs.process.outputs.origin }}" "${{ inputs.version }}"
  436. python devscripts/make_lazy_extractors.py
  437. - name: Build
  438. run: |
  439. python -m bundle.pyinstaller
  440. - name: Verify --update-to
  441. if: vars.UPDATE_TO_VERIFICATION
  442. run: |
  443. foreach ($name in @("yt-dlp_x86")) {
  444. Copy-Item "./dist/${name}.exe" "./dist/${name}_downgraded.exe"
  445. $version = & "./dist/${name}.exe" --version
  446. & "./dist/${name}_downgraded.exe" -v --update-to yt-dlp/yt-dlp@2023.03.04
  447. $downgraded_version = & "./dist/${name}_downgraded.exe" --version
  448. if ($version -eq $downgraded_version) {
  449. exit 1
  450. }
  451. }
  452. - name: Upload artifacts
  453. uses: actions/upload-artifact@v4
  454. with:
  455. name: build-bin-${{ github.job }}
  456. path: |
  457. dist/yt-dlp_x86.exe
  458. compression-level: 0
  459. meta_files:
  460. if: always() && !cancelled()
  461. needs:
  462. - process
  463. - unix
  464. - linux_static
  465. - linux_arm
  466. - macos
  467. - macos_legacy
  468. - windows
  469. - windows32
  470. runs-on: ubuntu-latest
  471. steps:
  472. - name: Download artifacts
  473. uses: actions/download-artifact@v4
  474. with:
  475. path: artifact
  476. pattern: build-bin-*
  477. merge-multiple: true
  478. - name: Make SHA2-SUMS files
  479. run: |
  480. cd ./artifact/
  481. # make sure SHA sums are also printed to stdout
  482. sha256sum -- * | tee ../SHA2-256SUMS
  483. sha512sum -- * | tee ../SHA2-512SUMS
  484. # also print as permanent annotations to the summary page
  485. while read -r shasum; do
  486. echo "::notice title=${shasum##* }::sha256: ${shasum% *}"
  487. done < ../SHA2-256SUMS
  488. - name: Make Update spec
  489. run: |
  490. cat >> _update_spec << EOF
  491. # This file is used for regulating self-update
  492. lock 2022.08.18.36 .+ Python 3\.6
  493. lock 2023.11.16 (?!win_x86_exe).+ Python 3\.7
  494. lock 2023.11.16 win_x86_exe .+ Windows-(?:Vista|2008Server)
  495. lock 2024.10.22 py2exe .+
  496. lock 2024.10.22 linux_(?:armv7l|aarch64)_exe .+-glibc2\.(?:[12]?\d|30)\b
  497. lock 2024.10.22 (?!\w+_exe).+ Python 3\.8
  498. lock 2024.10.22 win(?:_x86)?_exe Python 3\.[78].+ Windows-(?:7-|2008ServerR2)
  499. lockV2 yt-dlp/yt-dlp 2022.08.18.36 .+ Python 3\.6
  500. lockV2 yt-dlp/yt-dlp 2023.11.16 (?!win_x86_exe).+ Python 3\.7
  501. lockV2 yt-dlp/yt-dlp 2023.11.16 win_x86_exe .+ Windows-(?:Vista|2008Server)
  502. lockV2 yt-dlp/yt-dlp 2024.10.22 py2exe .+
  503. lockV2 yt-dlp/yt-dlp 2024.10.22 linux_(?:armv7l|aarch64)_exe .+-glibc2\.(?:[12]?\d|30)\b
  504. lockV2 yt-dlp/yt-dlp 2024.10.22 (?!\w+_exe).+ Python 3\.8
  505. lockV2 yt-dlp/yt-dlp 2024.10.22 win(?:_x86)?_exe Python 3\.[78].+ Windows-(?:7-|2008ServerR2)
  506. lockV2 yt-dlp/yt-dlp-nightly-builds 2023.11.15.232826 (?!win_x86_exe).+ Python 3\.7
  507. lockV2 yt-dlp/yt-dlp-nightly-builds 2023.11.15.232826 win_x86_exe .+ Windows-(?:Vista|2008Server)
  508. lockV2 yt-dlp/yt-dlp-nightly-builds 2024.10.22.051025 py2exe .+
  509. lockV2 yt-dlp/yt-dlp-nightly-builds 2024.10.22.051025 linux_(?:armv7l|aarch64)_exe .+-glibc2\.(?:[12]?\d|30)\b
  510. lockV2 yt-dlp/yt-dlp-nightly-builds 2024.10.22.051025 (?!\w+_exe).+ Python 3\.8
  511. lockV2 yt-dlp/yt-dlp-nightly-builds 2024.10.22.051025 win(?:_x86)?_exe Python 3\.[78].+ Windows-(?:7-|2008ServerR2)
  512. lockV2 yt-dlp/yt-dlp-master-builds 2023.11.15.232812 (?!win_x86_exe).+ Python 3\.7
  513. lockV2 yt-dlp/yt-dlp-master-builds 2023.11.15.232812 win_x86_exe .+ Windows-(?:Vista|2008Server)
  514. lockV2 yt-dlp/yt-dlp-master-builds 2024.10.22.045052 py2exe .+
  515. lockV2 yt-dlp/yt-dlp-master-builds 2024.10.22.060347 linux_(?:armv7l|aarch64)_exe .+-glibc2\.(?:[12]?\d|30)\b
  516. lockV2 yt-dlp/yt-dlp-master-builds 2024.10.22.060347 (?!\w+_exe).+ Python 3\.8
  517. lockV2 yt-dlp/yt-dlp-master-builds 2024.10.22.060347 win(?:_x86)?_exe Python 3\.[78].+ Windows-(?:7-|2008ServerR2)
  518. EOF
  519. - name: Sign checksum files
  520. env:
  521. GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
  522. if: env.GPG_SIGNING_KEY != ''
  523. run: |
  524. gpg --batch --import <<< "${{ secrets.GPG_SIGNING_KEY }}"
  525. for signfile in ./SHA*SUMS; do
  526. gpg --batch --detach-sign "$signfile"
  527. done
  528. - name: Upload artifacts
  529. uses: actions/upload-artifact@v4
  530. with:
  531. name: build-${{ github.job }}
  532. path: |
  533. _update_spec
  534. SHA*SUMS*
  535. compression-level: 0
  536. overwrite: true