Skip to content

Commit 4796109

Browse files
committed
update
1 parent 7df18b7 commit 4796109

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

.github/workflows/mpv.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,12 @@ jobs:
312312
with:
313313
name: ${{ env.mpv_name }}
314314
path: ${{ env.mpv_path }}
315-
# - name: Upload ffmpeg
316-
# uses: actions/upload-artifact@v3
317-
# if: ${{ env.ffmpeg_name }}
318-
# with:
319-
# name: ${{ env.ffmpeg_name }}
320-
# path: mpv-winbuild-cmake/release/${{ env.ffmpeg_name }}.7z
315+
- name: Upload ffmpeg
316+
uses: actions/upload-artifact@v3
317+
if: ${{ env.ffmpeg_name }}
318+
with:
319+
name: ${{ env.ffmpeg_name }}
320+
path: mpv-winbuild-cmake/release/${{ env.ffmpeg_name }}.7z
321321

322322
- name: Save Sources Cache
323323
if: ${{ github.ref_name == 'master' }}
@@ -458,10 +458,10 @@ jobs:
458458
uses: ncipollo/release-action@v1
459459
if: ${{ ( fromJson(needs.params.outputs.params).winbuild_repo == 'dyphire/mpv-winbuild-cmake' && fromJson(needs.params.outputs.params).winbuild_ref == 'patch' ) }}
460460
with:
461-
artifacts: "artifacts/*/mpv*.7z"
461+
artifacts: "artifacts/*/mpv*.7z,artifacts/*/ffmpeg*.7z"
462462
commit: version
463463
name: "MPV_OWN ${{ env.long_time }}"
464-
body: "**MPV git commit**: https://github.com/dyphire/mpv/commit/${{ fromJson(needs.params.outputs.params).sha }}\n- Remove video encoders: x264, x265, aom, libvpx, xvidcore\n- LuaSocket is built and included, so [simple-mpv-webui](https://github.com/open-dynaMIX/simple-mpv-webui) can be used out of the box\n- Test: add `--secondary-sub-override` and `--sub-ass-feature-*` options\n\n**Build Details**: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}\n**Build Time**: ${{ env.long_time }}"
464+
body: "**MPV git commit**: https://github.com/dyphire/mpv/commit/${{ fromJson(needs.params.outputs.params).sha }}\n- LuaSocket is built and included, so [simple-mpv-webui](https://github.com/open-dynaMIX/simple-mpv-webui) can be used out of the box\n- Test: add `--secondary-sub-override` and `--sub-ass-feature-*` options\n\n**Build Details**: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}\n**Build Time**: ${{ env.long_time }}"
465465
tag: "mpv_own-${{ env.short_time }}"
466466
allowUpdates: true
467467
artifactErrorsFailBuild: true
@@ -472,7 +472,7 @@ jobs:
472472
uses: ncipollo/release-action@v1
473473
if: ${{ ( fromJson(needs.params.outputs.params).winbuild_repo == 'shinchiro/mpv-winbuild-cmake') }}
474474
with:
475-
artifacts: "artifacts/*/mpv*.7z"
475+
artifacts: "artifacts/*/mpv*.7z,artifacts/*/ffmpeg*.7z"
476476
commit: version
477477
name: "MPV ${{ env.long_time }}"
478478
body: "**MPV git commit**: https://github.com/mpv-player/mpv/commit/${{ fromJson(needs.params.outputs.params).sha }}\n**Build Details**: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}\n**Build Time**: ${{ env.long_time }}"

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Use Github Action to build mpv-win with latest commit.
1111
- **MPV** Based on https://github.com/shinchiro/mpv-winbuild-cmake. [![mpv-winbuild-cmake](https://flat.badgen.net/github/last-commit/shinchiro/mpv-winbuild-cmake?scale=0.8&cache=1800)](https://github.com/shinchiro/mpv-winbuild-cmake)
1212

1313
- **MPV_OWN** Based on https://github.com/dyphire/mpv-winbuild-cmake. [![mpv-winbuild-cmake](https://flat.badgen.net/github/last-commit/dyphire/mpv-winbuild-cmake?scale=0.8&cache=1800)](https://github.com/dyphire/mpv-winbuild-cmake)
14-
- Remove video encoders: x264, x265, aom, libvpx, xvidcore
1514
- LuaSocket is built and included, so [simple-mpv-webui](https://github.com/open-dynaMIX/simple-mpv-webui) can be used out of the box
1615
- **Test**: mpv from [dyphire/mpv](https://github.com/dyphire/mpv/tree/patch)
1716
- add `--secondary-sub-override` and `--sub-ass-feature-*` options
@@ -27,8 +26,7 @@ This repo only provides 64-bit version. If you need a 32-bit version, you can fo
2726
> Some media players based on libmpv will need `libmpv-2.dll`.You can upgrade their built-in libmpv version by overwriting libmpv-2.dll.
2827
2928
### Release Retention Policy
30-
- The last build of each month is kept for one years.
31-
- The last 30 weekly builds are kept.
29+
The last 30 weekly builds are kept.
3230

3331
## Information about packages
3432

@@ -43,11 +41,14 @@ Same as [shinchiro](https://github.com/shinchiro/mpv-winbuild-cmake/blob/master/
4341
- vulkan [![Vulkan-Loader](https://flat.badgen.net/github/last-commit/KhronosGroup/Vulkan-Loader/main?scale=0.8&cache=1800)](https://github.com/KhronosGroup/Vulkan-Loader)
4442
- ANGLE [![ANGLE](https://flat.badgen.net/gitlab/last-commit/shinchiro/angle/main?scale=0.8&cache=1800)](https://gitlab.com/shinchiro/angle)
4543
- xz [![xz](https://flat.badgen.net/gitlab/last-commit/shinchiro/xz?scale=0.8&cache=1800)](https://gitlab.com/shinchiro/xz)
44+
- x264 [![x264](https://flat.badgen.net/https/latest-commit-badgen.vercel.app/gitlab/code.videolan.org/videolan/x264?scale=0.8&cache=1800)](https://code.videolan.org/videolan/x264)
45+
- x265 (multilib) [![x265](https://flat.badgen.net/https/latest-commit-badgen.vercel.app/bitbucket/multicoreware/x265_git?scale=0.8&cache=1800)](https://bitbucket.org/multicoreware/x265_git)
4646
- uchardet [![uchardet](https://flat.badgen.net/github/last-commit/freedesktop/uchardet?scale=0.8&cache=1800)](https://github.com/freedesktop/uchardet)
4747
- rubberband [![rubberband](https://flat.badgen.net/github/last-commit/breakfastquay/rubberband/default?scale=0.8&cache=1800)](https://github.com/breakfastquay/rubberband)
4848
- opus [![opus](https://flat.badgen.net/github/last-commit/xiph/opus?scale=0.8&cache=1800)](https://github.com/xiph/opus)
4949
- openal-soft [![openal-soft](https://flat.badgen.net/github/last-commit/kcat/openal-soft?scale=0.8&cache=1800)](https://github.com/kcat/openal-soft)
5050
- luajit [![luajit](https://flat.badgen.net/github/last-commit/LuaJIT/LuaJIT?scale=0.8&cache=1800)](https://github.com/LuaJIT/LuaJIT)
51+
- libvpx [![libvpx](https://flat.badgen.net/github/last-commit/webmproject/libvpx/main?scale=0.8&cache=1800)](https://chromium.googlesource.com/webm/libvpx)
5152
- luasocket [![luasocket](https://flat.badgen.net/github/last-commit/lunarmodules/luasocket?scale=0.8&cache=1800)](https://github.com/lunarmodules/luasocket.git)
5253
- libwebp [![libwebp](https://flat.badgen.net/github/last-commit/webmproject/libwebp/main?scale=0.8&cache=1800)](https://chromium.googlesource.com/webm/libwebp)
5354
- libpng [![libpng](https://flat.badgen.net/github/last-commit/glennrp/libpng?scale=0.8&cache=1800)](https://github.com/glennrp/libpng)
@@ -86,9 +87,10 @@ Same as [shinchiro](https://github.com/shinchiro/mpv-winbuild-cmake/blob/master/
8687
- libmodplug [![libmodplug](https://flat.badgen.net/github/last-commit/Konstanty/libmodplug?scale=0.8&cache=1800)](https://github.com/Konstanty/libmodplug)
8788
- uavs3d [![uavs3d](https://flat.badgen.net/github/last-commit/uavs3/uavs3d?scale=0.8&cache=1800)](https://github.com/uavs3/uavs3d)
8889
- davs2 [![davs2](https://flat.badgen.net/github/last-commit/pkuvcl/davs2?scale=0.8&cache=1800)](https://github.com/pkuvcl/davs2)
89-
- libdovi [![libdovi](https://flat.badgen.net/github/last-commit/quietvoid/dovi_tool/main?style=flat-square)](https://github.com/quietvoid/dovi_tool)
90+
- libdovi [![libdovi](https://flat.badgen.net/github/last-commit/quietvoid/dovi_tool/main?scale=0.8&cache=1800)](https://github.com/quietvoid/dovi_tool)
9091
- aribb24 [![aribb24](https://flat.badgen.net/github/last-commit/nkoriyama/aribb24?scale=0.8&cache=1800)](https://github.com/nkoriyama/aribb24)
9192
- libzvbi [![libzvbi](https://flat.badgen.net/github/last-commit/zapping-vbi/zvbi/main?scale=0.8&cache=1800)](https://github.com/zapping-vbi/zvbi)
93+
- rav1e [![rav1e](https://flat.badgen.net/github/last-commit/xiph/rav1e?scale=0.8&cache=1800)](https://github.com/xiph/rav1e)
9294
- Zip
9395
- [expat](https://github.com/libexpat/libexpat) (2.5.0) ![](https://img.shields.io/github/v/release/libexpat/libexpat?style=flat-square)
9496
- [bzip](https://sourceware.org/pub/bzip2/) (1.0.8) ![](https://img.shields.io/github/v/tag/libarchive/bzip2?style=flat-square)

build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ package() {
4040
zip $bit $arch $x86_64_level
4141
sudo rm -rf $buildroot/build$bit/mpv-*
4242
sudo chmod -R a+rwx $buildroot/build$bit
43-
rm -rf $buildroot/install_rustup/.cargo/registry/{cache,src}
44-
rm -rf $buildroot/install_rustup/.cargo/git/checkouts
4543
}
4644

4745
build() {
@@ -67,6 +65,8 @@ build() {
6765
echo "Failed compiled $bit-bit. Stop"
6866
exit 1
6967
fi
68+
69+
ninja -C $buildroot/build$bit cargo-clean
7070
}
7171

7272
zip() {

0 commit comments

Comments
 (0)