-
Notifications
You must be signed in to change notification settings - Fork 4
144 lines (141 loc) · 8.37 KB
/
ffmpeg.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
name: ffmpeg
defaults:
run:
shell: D:\msys64\msys2.cmd {0}
on:
workflow_dispatch:
inputs:
compiler:
description: "Compiler"
required: false
default: "clang"
type: choice
options:
- gcc
- clang
#schedule:
#- cron: '30 0 * * MON'
jobs:
ffmpeg:
runs-on: windows-2022
env:
COMPILER: ${{ inputs.compiler }}
GH_TOKEN: ${{ secrets.BOT }}
steps:
- name: Prepare
run: git config --global core.autocrlf input
shell: bash
- name: Checkout
uses: actions/checkout@main
- name: Cache msys2
uses: actions/cache@main
with:
path: D:\msys64
key: msys2
- name: Cache ${{ inputs.compiler }} Toolchain
uses: actions/cache@main
with:
path: D:\ucrt64
key: ${{ inputs.compiler }}-ucrt-x86_64
- name: Remove "libwinpthread.dll.a libpthread.dll.a libc++.dll.a" from MinGW-w64-CLANG Toolchain
run: |
rm /d/ucrt64/lib/*pthread.dll.a
rm /d/ucrt64/lib/libc++.dll.a
- name: Build
run: |
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/amf-headers-dev-1.4.35-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/aom-dev-64-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/avisynth-dev-3.7.3-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/bzip2-dev-1.0.8-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/dav1d-dev-1.5.0-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/davs2-dev-1.7-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/freetype2-dev-2_13_3-1-x86_64.pkg.tar.zst
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/lcms2-dev-2.16-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libaribcaption-dev-1.1.1-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libbs2b-dev-3.1.0-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libdovi-dev-3.3.1-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libiconv-dev-1.18-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libjpeg-dev-3.1.0-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libjxl-dev-0.11.1-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libmodplug-dev-0.8.9.0-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libmysofa-dev-1.3.3-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/libopenmpt-dev-0.7.13-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libplacebo-dev-7.349.0-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libpng-dev-1.6.45-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libsdl2-dev-2.30.11-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libsoxr-dev-0.1.3-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libspeex-dev-1.2.1-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libsrt-dev-1.5.4-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libssh-dev-0.11.1-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libva-dev-2.22.0-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/libvpl-dev-2023.4.0-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libvpx-dev-1.15.0-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libwebp-dev-1.5.0-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libxml2-dev-2.13.5-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libxvid-dev-1.3.7-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libzimg-dev-3.0.5-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libzvbi-dev-0.2.43-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/openal-soft-dev-1.24.2-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/openssl-dev-3.4.0-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/shaderc-dev-2024.4-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/svtav1-dev-2.3.0-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/uavs3d-dev-1.1-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/vapoursynth-dev-70-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/vulkan-dev-1.4.304.0-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/vvdec-dev-3.0.0-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/xxhash-dev-0.8.3-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/xz-dev-5.6.3-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/zlib-dev-2.2.3-1-x86_64.pkg.tar.zst
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/zstd-dev-1.5.6-1-x86_64.pkg.tar.zst
pacman -U *.zst --noconfirm
cd ffmpeg; makepkg-$COMPILER
- name: Collecting logs
if: always()
run: |
mkdir ffmpeg_logs
cp -fr $(find ffmpeg -type f -name "*.log") ffmpeg_logs || true
7z a logs.7z ffmpeg_logs
- name: Uploading logs
uses: actions/upload-artifact@master
if: always()
with:
name: ffmpeg-logs
path: logs.7z
- name: Delete
uses: mknejp/delete-release-assets@v1
with:
token: ${{ secrets.BOT }}
tag: latest
assets: ffmpeg-git*
fail-if-no-assets: false
fail-if-no-release: false
- name: Delete dev
uses: mknejp/delete-release-assets@v1
with:
token: ${{ secrets.BOT }}
tag: dev
assets: ffmpeg-dev*
fail-if-no-assets: false
fail-if-no-release: false
- name: Upload
uses: svenstaro/upload-release-action@master
with:
repo_token: ${{ secrets.BOT }}
file: ffmpeg/*pkg*.xz
tag: latest
overwrite: true
file_glob: true
- name: Upload Dev
uses: svenstaro/upload-release-action@master
with:
repo_token: ${{ secrets.BOT }}
file: ffmpeg/*.zst
tag: dev
overwrite: true
file_glob: true