-
Notifications
You must be signed in to change notification settings - Fork 3
154 lines (150 loc) · 7.7 KB
/
batch-stable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
name: batch-stable
on:
workflow_dispatch:
jobs:
ffmpeg:
runs-on: windows-2019
steps:
- uses: actions/cache@v4
id: cache
with:
path: D:\ucrt64
key: mcf_20240605_14.1.1_x64-ucrt
- name: Prepare
run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- name: Build
env:
C_INCLUDE_PATH: /opt/include
CPLUS_INCLUDE_PATH: /opt/include
LIBRARY_PATH: /opt/lib
MSYSTEM: UCRT64
run: |
C:\msys64\usr\bin\bash -lc 'pacman -Sy nasm --noconfirm'
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/lame-dev-3.100-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libogg-dev-1.3.5-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libvorbis_aotuv-dev-1.3.7-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/opus-dev-1.5.2-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/ffnvcodec-dev-12.2.72.0-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/vapoursynth-dev-68-1-x86_64.pkg.tar.zst
C:\msys64\usr\bin\bash -lc "pacman -U /d/a/mpv-win64/mpv-win64/*.zst --noconfirm"
C:\msys64\usr\bin\bash -lc 'cd /d/a/mpv-win64/mpv-win64/ffmpeg; PATH=/usr/bin:/opt/bin:/d/ucrt64/bin PKG_CONFIG_PATH=/opt/lib/pkgconfig makepkg'
- name: Delete
uses: mknejp/delete-release-assets@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: latest
assets: ffmpeg*
fail-if-no-assets: false
fail-if-no-release: false
- name: Delete Dev
uses: mknejp/delete-release-assets@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: dev
assets: ffmpeg*
fail-if-no-assets: false
fail-if-no-release: false
- name: Upload
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ffmpeg/*pkg*.xz
tag: latest
overwrite: true
file_glob: true
- name: Upload Dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ffmpeg/*.zst
tag: dev
overwrite: true
file_glob: true
mpv:
needs: [ffmpeg]
runs-on: windows-2019
steps:
- uses: actions/cache@v4
id: cache
with:
path: D:\ucrt64
key: mcf_20240605_14.1.1_x64-ucrt
- name: Prepare
run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- name: Build
env:
C_INCLUDE_PATH: /opt/include
CPLUS_INCLUDE_PATH: /opt/include
LIBRARY_PATH: /opt/lib
MSYSTEM: UCRT64
run: |
C:\hostedtoolcache\windows\python\3.9.13\x64\python -m pip install meson ninja mako
C:\msys64\usr\bin\bash -lc 'pacman -Sy autoconf-wrapper automake-wrapper libtool nasm yasm --noconfirm'
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/ffmpeg-dev-7.0.1-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/luajit-dev-2.1-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/ffnvcodec-dev-12.2.72.0-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/vapoursynth-dev-68-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/freetype2-dev-2.13.2-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/fribidi-dev-1.0.15-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/harfbuzz-dev-8.5.0-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libass-dev-0.17.2-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/lcms2-dev-2.16-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libbluray-dev-1.3.4-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libdvdcss-dev-1.4.3-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libdvdread-dev-6.1.3-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libdvdnav-dev-6.1.1-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/vulkan-dev-1.3.283.0-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/shaderc-dev-2024.1-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/spirv-cross-dev-1.3.261.1-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libdovi-dev-3.3.0-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libplacebo-dev-6.338.2-1-x86_64.pkg.tar.zst
C:\msys64\usr\bin\bash -lc "pacman -U /d/a/mpv-win64/mpv-win64/*.zst --noconfirm"
C:\msys64\usr\bin\bash -lc 'cd /d/a/mpv-win64/mpv-win64/mpv; PATH=/d/ucrt64/bin:/c/hostedtoolcache/windows/python/3.9.13/x64:/c/hostedtoolcache/windows/python/3.9.13/x64/scripts:/usr/bin:/opt/bin PKG_CONFIG_PATH=/opt/lib/pkgconfig makepkg'
- name: Delete
uses: mknejp/delete-release-assets@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: latest
assets: mpv*
fail-if-no-assets: false
fail-if-no-release: false
- name: Upload
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: mpv/*pkg*.xz
tag: latest
overwrite: true
file_glob: true
package:
runs-on: windows-2019
needs: [mpv]
steps:
- name: Package
run: |
$date = Get-Date -Format "yyyyMMdd"
curl -OL https://github.com/${{ github.repository }}/releases/download/latest/ffmpeg-7.0.1-1-x86_64.pkg.tar.xz
curl -OL https://github.com/${{ github.repository }}/releases/download/latest/luajit-2.1-1-x86_64.pkg.tar.xz
curl -OL https://github.com/${{ github.repository }}/releases/download/latest/vapoursynth-68-1-x86_64.pkg.tar.xz
curl -OL https://github.com/${{ github.repository }}/releases/download/latest/mpv-0.38.0-1-x86_64.pkg.tar.xz
curl -OL https://github.com/${{ github.repository }}/releases/download/latest/mcfgthread-20240605-1-x86_64.pkg.tar.xz
C:\msys64\usr\bin\bash -lc "pacman -U /d/a/mpv-win64/mpv-win64/*.xz --noconfirm"
md C:\msys64\opt\bin\portable_config
del *.xz
7z a All-in-One-MPV-withoutPython-${date}.7z C:\msys64\opt\bin\*
copy All-in-One-MPV-withoutPython-${date}.7z All-in-One-MPV-withoutPython-latest.7z
curl -OL https://github.com/${{ github.repository }}/releases/download/latest/python-embed-3.12.4-1-x86_64.pkg.tar.xz
curl -OL https://github.com/${{ github.repository }}/releases/download/latest/vapoursynth-plugin-core-extra-68-1-x86_64.pkg.tar.xz
C:\msys64\usr\bin\bash -lc "pacman -U /d/a/mpv-win64/mpv-win64/*.xz --noconfirm"
7z a All-in-One-MPV-${date}.7z C:\msys64\opt\bin\*
copy All-in-One-MPV-${date}.7z All-in-One-MPV-latest.7z
- name: Upload
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: All*.7z
tag: latest
overwrite: true
file_glob: true