-
Notifications
You must be signed in to change notification settings - Fork 4
89 lines (83 loc) · 2.48 KB
/
build-win.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
name: Build - win
on:
push:
branches:
- '**'
tags:
- 'v*'
paths-ignore:
- 'buildtools/docker/**'
- 'docs/**'
- '.vscode/**'
- '.devcontainer/**'
- '**.md'
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
include:
- { sys: mingw64, env: x86_64 }
- { sys: ucrt64, env: ucrt-x86_64 } # Experimental!
# - { sys: clang64, env: clang-x86_64 } # Experimental!
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
submodules: 'true'
# - name: Set up msvc
# uses: ilammy/msvc-dev-cmd@v1
- uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
update: true
path-type: inherit
install: >-
git make pkgconf diffutils zip tree
mingw-w64-${{matrix.env}}-gcc
mingw-w64-${{matrix.env}}-cmake mingw-w64-${{matrix.env}}-ninja
mingw-w64-${{matrix.env}}-meson mingw-w64-${{matrix.env}}-autotools
mingw-w64-${{matrix.env}}-yasm mingw-w64-${{matrix.env}}-nasm
mingw-w64-${{matrix.env}}-gperf mingw-w64-${{matrix.env}}-libpng
- name: Remove system installed openssl
run: |
# patch to avoid system installed ssl dependency
# in this env, mingw64/ucrt64 ssl will still be used rather than project-built
rm -f /c/Windows/SYSTEM32/libssl*.dll
rm -f /c/Windows/SYSTEM32/libcrypto*.dll
- name: Build
run: |
buildtools/scripts/build.sh
tree build
ldd build/bin/ffmpeg
- uses: actions/upload-artifact@v3
with:
name: ffmpeg-bin-${{matrix.sys}}
path: build/bin/
- uses: actions/upload-artifact@v3
if: failure()
with:
name: ffbuild-logs-${{ matrix.sys }}
path: ffmpeg/ffbuild/config.log
test:
needs: build
runs-on: windows-latest
strategy:
matrix:
include:
- { sys: mingw64, env: x86_64 }
- { sys: ucrt64, env: ucrt-x86_64 } # Experimental!
# - { sys: clang64, env: clang-x86_64 } # Experimental!
steps:
- uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: ffmpeg-bin-${{matrix.sys}}
path: ffmpeg-bin
- name: Test
run: |
./tests/acceptance-test.bat