Skip to content

Commit 7ef6550

Browse files
committed
Add releasing
1 parent 11668c5 commit 7ef6550

File tree

3 files changed

+340
-75
lines changed

3 files changed

+340
-75
lines changed
Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
name: Build FFmpeg on pull request
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
submodules: true
15+
fetch-depth: 1
16+
17+
- name: Install dependencies
18+
run: ./dependencies.sh
19+
20+
- name: Move ffmpeg-windows-build-helpers
21+
run: mv -v ./ffmpeg-windows-build-helpers/* ./
22+
23+
- name: Compile FFmpeg using ffmpeg-windows-build-helpers
24+
run: ./cross_compile_ffmpeg.sh --ffmpeg-source-dir=$GITHUB_WORKSPACE/ffmpeg-source --gcc-cpu-count=2 --disable-nonfree=n --sandbox-ok=y --compiler-flavors=win64 # multi builds does not currently work on source dir
25+
26+
- name: Upload FFmpeg win64 with FDK AAC
27+
uses: actions/upload-artifact@v2
28+
with:
29+
name: ffmpeg-win64-nonfree
30+
path: ffmpeg-source/ffmpeg.exe
31+
32+
- name: Upload FFmpeg win64 GPL
33+
uses: actions/upload-artifact@v2
34+
with:
35+
name: ffmpeg-win64-gpl
36+
path: ffmpeg-source/bin/ffmpeg.exe
37+
38+
- name: Upload FFplay win64 with FDK AAC
39+
uses: actions/upload-artifact@v2
40+
with:
41+
name: ffplay-win64-nonfree
42+
path: ffmpeg-source/ffplay.exe
43+
44+
- name: Upload FFplay win64 GPL
45+
uses: actions/upload-artifact@v2
46+
with:
47+
name: ffplay-win64-gpl
48+
path: ffmpeg-source/bin/ffplay.exe
49+
50+
- name: Upload x264 win64
51+
uses: actions/upload-artifact@v2
52+
with:
53+
name: x264-win64
54+
path: sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/bin/x264.exe
55+
56+
- name: Upload x264 win64 all bitdepth
57+
uses: actions/upload-artifact@v2
58+
with:
59+
name: x264-win64-all-bitdepth
60+
path: sandbox/win64/x264_all_bitdepth/x264.exe
61+
62+
- name: Upload x265 win64
63+
uses: actions/upload-artifact@v2
64+
with:
65+
name: x265-win64
66+
path: sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/bin/x265.exe
67+
68+
- name: Upload x265 win64 all bitdepth
69+
uses: actions/upload-artifact@v2
70+
with:
71+
name: x265-win64-all-bitdepth
72+
path: sandbox/win64/x265_all_bitdepth/8bit/x265.exe
73+
74+
release:
75+
needs: build
76+
runs-on: ubuntu-20.04
77+
steps:
78+
- name: Download all builds
79+
uses: actions/download-artifact@v2
80+
81+
- name: Create Release
82+
id: create-release
83+
uses: actions/create-release@v1
84+
env:
85+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
with:
87+
tag_name: "a#${{ github.run_number }}"
88+
release_name: "Auto #${{ github.run_number }}"
89+
draft: false
90+
prerelease: true
91+
92+
- name: Upload FFmpeg win64 with FDK AAC Release Asset
93+
uses: actions/upload-release-asset@v1
94+
env:
95+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
96+
with:
97+
upload_url: ${{ steps.create-release.outputs.upload_url }}
98+
asset_path: ffmpeg-win64-nonfree/ffmpeg.exe
99+
asset_name: ffmpeg-win64-nonfree.exe
100+
asset_content_type: application/vnd.microsoft.portable-executable
101+
102+
- name: Upload FFmpeg win64 GPL Release Asset
103+
uses: actions/upload-release-asset@v1
104+
env:
105+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
106+
with:
107+
upload_url: ${{ steps.create-release.outputs.upload_url }}
108+
asset_path: ffmpeg-win64-gpl/ffmpeg.exe
109+
asset_name: ffmpeg-win64-gpl.exe
110+
asset_content_type: application/vnd.microsoft.portable-executable
111+
112+
- name: Upload FFplay win64 with FDK AAC Release Asset
113+
uses: actions/upload-release-asset@v1
114+
env:
115+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116+
with:
117+
upload_url: ${{ steps.create-release.outputs.upload_url }}
118+
asset_path: ffplay-win64-nonfree/ffmpeg.exe
119+
asset_name: ffplay-win64-nonfree.exe
120+
asset_content_type: application/vnd.microsoft.portable-executable
121+
122+
- name: Upload FFplay win64 GPL Release Asset
123+
uses: actions/upload-release-asset@v1
124+
env:
125+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
126+
with:
127+
upload_url: ${{ steps.create-release.outputs.upload_url }}
128+
asset_path: ffplay-win64-gpl/ffmpeg.exe
129+
asset_name: ffplay-win64-gpl.exe
130+
asset_content_type: application/vnd.microsoft.portable-executable
131+
132+
- name: Upload x264 win64 Release Asset
133+
uses: actions/upload-release-asset@v1
134+
env:
135+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136+
with:
137+
upload_url: ${{ steps.create-release.outputs.upload_url }}
138+
asset_path: x264-win64/x264.exe
139+
asset_name: x264-win64.exe
140+
asset_content_type: application/vnd.microsoft.portable-executable
141+
142+
- name: Upload x264 win64 all bitdepth Release Asset
143+
uses: actions/upload-release-asset@v1
144+
env:
145+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
146+
with:
147+
upload_url: ${{ steps.create-release.outputs.upload_url }}
148+
asset_path: x264-win64-all-bitdepth/x264.exe
149+
asset_name: x264-win64-all-bitdepth.exe
150+
asset_content_type: application/vnd.microsoft.portable-executable
151+
152+
- name: Upload x265 win64 Release Asset
153+
uses: actions/upload-release-asset@v1
154+
env:
155+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
156+
with:
157+
upload_url: ${{ steps.create-release.outputs.upload_url }}
158+
asset_path: x265-win64/x265.exe
159+
asset_name: x265-win64.exe
160+
asset_content_type: application/vnd.microsoft.portable-executable
161+
162+
- name: Upload x265 win64 all bitdepth Release Asset
163+
uses: actions/upload-release-asset@v1
164+
env:
165+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
166+
with:
167+
upload_url: ${{ steps.create-release.outputs.upload_url }}
168+
asset_path: x265-win64-all-bitdepth/x265.exe
169+
asset_name: x265-win64-all-bitdepth.exe
170+
asset_content_type: application/vnd.microsoft.portable-executable
Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
name: Build FFmpeg on push
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
submodules: true
15+
fetch-depth: 1
16+
17+
- name: Install dependencies
18+
run: ./dependencies.sh
19+
20+
- name: Move ffmpeg-windows-build-helpers
21+
run: mv -v ./ffmpeg-windows-build-helpers/* ./
22+
23+
- name: Compile FFmpeg using ffmpeg-windows-build-helpers
24+
run: ./cross_compile_ffmpeg.sh --ffmpeg-source-dir=$GITHUB_WORKSPACE/ffmpeg-source --gcc-cpu-count=2 --disable-nonfree=n --sandbox-ok=y --compiler-flavors=win64 # multi builds does not currently work on source dir
25+
26+
- name: Upload FFmpeg win64 with FDK AAC
27+
uses: actions/upload-artifact@v2
28+
with:
29+
name: ffmpeg-win64-nonfree
30+
path: ffmpeg-source/ffmpeg.exe
31+
32+
- name: Upload FFmpeg win64 GPL
33+
uses: actions/upload-artifact@v2
34+
with:
35+
name: ffmpeg-win64-gpl
36+
path: ffmpeg-source/bin/ffmpeg.exe
37+
38+
- name: Upload FFplay win64 with FDK AAC
39+
uses: actions/upload-artifact@v2
40+
with:
41+
name: ffplay-win64-nonfree
42+
path: ffmpeg-source/ffplay.exe
43+
44+
- name: Upload FFplay win64 GPL
45+
uses: actions/upload-artifact@v2
46+
with:
47+
name: ffplay-win64-gpl
48+
path: ffmpeg-source/bin/ffplay.exe
49+
50+
- name: Upload x264 win64
51+
uses: actions/upload-artifact@v2
52+
with:
53+
name: x264-win64
54+
path: sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/bin/x264.exe
55+
56+
- name: Upload x264 win64 all bitdepth
57+
uses: actions/upload-artifact@v2
58+
with:
59+
name: x264-win64-all-bitdepth
60+
path: sandbox/win64/x264_all_bitdepth/x264.exe
61+
62+
- name: Upload x265 win64
63+
uses: actions/upload-artifact@v2
64+
with:
65+
name: x265-win64
66+
path: sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/bin/x265.exe
67+
68+
- name: Upload x265 win64 all bitdepth
69+
uses: actions/upload-artifact@v2
70+
with:
71+
name: x265-win64-all-bitdepth
72+
path: sandbox/win64/x265_all_bitdepth/8bit/x265.exe
73+
74+
release:
75+
needs: build
76+
runs-on: ubuntu-20.04
77+
steps:
78+
- name: Download all builds
79+
uses: actions/download-artifact@v2
80+
81+
- name: Create Release
82+
id: create-release
83+
uses: actions/create-release@v1
84+
env:
85+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
with:
87+
tag_name: "#${{ github.run_number }}"
88+
release_name: "#${{ github.run_number }}"
89+
draft: false
90+
prerelease: false
91+
92+
- name: Upload FFmpeg win64 with FDK AAC Release Asset
93+
uses: actions/upload-release-asset@v1
94+
env:
95+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
96+
with:
97+
upload_url: ${{ steps.create-release.outputs.upload_url }}
98+
asset_path: ffmpeg-win64-nonfree/ffmpeg.exe
99+
asset_name: ffmpeg-win64-nonfree.exe
100+
asset_content_type: application/vnd.microsoft.portable-executable
101+
102+
- name: Upload FFmpeg win64 GPL Release Asset
103+
uses: actions/upload-release-asset@v1
104+
env:
105+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
106+
with:
107+
upload_url: ${{ steps.create-release.outputs.upload_url }}
108+
asset_path: ffmpeg-win64-gpl/ffmpeg.exe
109+
asset_name: ffmpeg-win64-gpl.exe
110+
asset_content_type: application/vnd.microsoft.portable-executable
111+
112+
- name: Upload FFplay win64 with FDK AAC Release Asset
113+
uses: actions/upload-release-asset@v1
114+
env:
115+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116+
with:
117+
upload_url: ${{ steps.create-release.outputs.upload_url }}
118+
asset_path: ffplay-win64-nonfree/ffmpeg.exe
119+
asset_name: ffplay-win64-nonfree.exe
120+
asset_content_type: application/vnd.microsoft.portable-executable
121+
122+
- name: Upload FFplay win64 GPL Release Asset
123+
uses: actions/upload-release-asset@v1
124+
env:
125+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
126+
with:
127+
upload_url: ${{ steps.create-release.outputs.upload_url }}
128+
asset_path: ffplay-win64-gpl/ffmpeg.exe
129+
asset_name: ffplay-win64-gpl.exe
130+
asset_content_type: application/vnd.microsoft.portable-executable
131+
132+
- name: Upload x264 win64 Release Asset
133+
uses: actions/upload-release-asset@v1
134+
env:
135+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136+
with:
137+
upload_url: ${{ steps.create-release.outputs.upload_url }}
138+
asset_path: x264-win64/x264.exe
139+
asset_name: x264-win64.exe
140+
asset_content_type: application/vnd.microsoft.portable-executable
141+
142+
- name: Upload x264 win64 all bitdepth Release Asset
143+
uses: actions/upload-release-asset@v1
144+
env:
145+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
146+
with:
147+
upload_url: ${{ steps.create-release.outputs.upload_url }}
148+
asset_path: x264-win64-all-bitdepth/x264.exe
149+
asset_name: x264-win64-all-bitdepth.exe
150+
asset_content_type: application/vnd.microsoft.portable-executable
151+
152+
- name: Upload x265 win64 Release Asset
153+
uses: actions/upload-release-asset@v1
154+
env:
155+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
156+
with:
157+
upload_url: ${{ steps.create-release.outputs.upload_url }}
158+
asset_path: x265-win64/x265.exe
159+
asset_name: x265-win64.exe
160+
asset_content_type: application/vnd.microsoft.portable-executable
161+
162+
- name: Upload x265 win64 all bitdepth Release Asset
163+
uses: actions/upload-release-asset@v1
164+
env:
165+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
166+
with:
167+
upload_url: ${{ steps.create-release.outputs.upload_url }}
168+
asset_path: x265-win64-all-bitdepth/x265.exe
169+
asset_name: x265-win64-all-bitdepth.exe
170+
asset_content_type: application/vnd.microsoft.portable-executable

0 commit comments

Comments
 (0)