Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
8e4e7678
Commit
8e4e7678
authored
Jul 18, 2021
by
Jerome Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use matrix to split jobs
parent
164ca130
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
81 deletions
+66
-81
core-st.yml
.github/workflows/core-st.yml
+0
-26
core.yml
.github/workflows/core.yml
+21
-12
build-with-docker.sh
build-with-docker.sh
+1
-1
build.sh
build.sh
+44
-42
No files found.
.github/workflows/core-st.yml
deleted
100644 → 0
View file @
164ca130
name
:
Build FFmpeg.wasm (Single Thread)
on
:
push
:
branches
:
[
n4.3.1-wasm
]
pull_request
:
branches
:
[
n4.3.1-wasm
]
env
:
EM_VERSION
:
2.0.8
EM_CACHE_FOLDER
:
'
emsdk-cache'
jobs
:
linux-build_with_docker
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
with
:
submodules
:
recursive
-
name
:
Build FFMpeg
shell
:
bash
run
:
|
FFMPEG_ST=yes bash build-with-docker.sh
-
uses
:
actions/upload-artifact@master
with
:
name
:
ffmpeg-core
path
:
wasm/packages/core-st/dist
.github/workflows/core.yml
View file @
8e4e7678
name
:
Build FFmpeg.wasm
on
:
push
:
branches
:
[
n4.3.1-wasm
]
branches
:
-
n4.3.1-wasm
pull_request
:
branches
:
[
n4.3.1-wasm
]
branches
:
-
n4.3.1-wasm
env
:
EM_VERSION
:
2.0.8
EM_CACHE_FOLDER
:
'
emsdk-cache'
#
env:
#
EM_VERSION: 2.0.8
#
EM_CACHE_FOLDER: 'emsdk-cache'
jobs
:
linux-build_with_docker
:
build-libs
:
strategy
:
max-parallel
:
1
matrix
:
script
:
-
build-zlib
-
build-x264
-
build-x265
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
...
...
@@ -18,12 +27,12 @@ jobs:
submodules
:
recursive
-
name
:
Build FFMpeg
shell
:
bash
run
:
|
bash build-with-docker.sh
-
uses
:
actions/upload-artifact@master
with
:
name
:
ffmpeg-core
path
:
wasm/packages/core/dist
run
:
bash build-with-docker.sh install-deps ${{ matrix.script }}
# - uses: actions/upload-artifact@master
# with:
# name: ffmpeg-core
# path: wasm/packages/core/dist
# Disable macos build due to there is no ldconfig command
# during freetype2 build.
# macos-build:
...
...
build-with-docker.sh
View file @
8e4e7678
...
...
@@ -11,4 +11,4 @@ docker run \
-v
$PWD
/wasm/cache:/emsdk_portable/.data/cache/wasm
\
-e
FFMPEG_ST
=
${
FFMPEG_ST
:-
no
}
\
emscripten/emsdk:
$EM_VERSION
\
sh
-c
'bash ./build.sh'
bash ./build.sh
"
$@
"
build.sh
View file @
8e4e7678
...
...
@@ -4,45 +4,47 @@ set -eo pipefail
SCRIPT_ROOT
=
$(
dirname
$0
)
/wasm/build-scripts
# verify Emscripten version
emcc
-v
# install dependencies
$SCRIPT_ROOT
/install-deps.sh
# build zlib
$SCRIPT_ROOT
/build-zlib.sh
# build x264
$SCRIPT_ROOT
/build-x264.sh
# build x265
$SCRIPT_ROOT
/build-x265.sh
# build libvpx
$SCRIPT_ROOT
/build-libvpx.sh
# build WavPack
$SCRIPT_ROOT
/build-wavpack.sh
# build lame
$SCRIPT_ROOT
/build-lame.sh
# build fdk-aac
$SCRIPT_ROOT
/build-fdk-aac.sh
# build ogg
$SCRIPT_ROOT
/build-ogg.sh
# build vorbis
$SCRIPT_ROOT
/build-vorbis.sh
# build theora
$SCRIPT_ROOT
/build-theora.sh
# build opus
$SCRIPT_ROOT
/build-opus.sh
# build libwebp
$SCRIPT_ROOT
/build-libwebp.sh
# build freetype2
$SCRIPT_ROOT
/build-freetype2.sh
# build fribidi
$SCRIPT_ROOT
/build-fribidi.sh
# build harfbuzz
$SCRIPT_ROOT
/build-harfbuzz.sh
# build libass
$SCRIPT_ROOT
/build-libass.sh
# build aom (disabled as it is extremely slow)
# $SCRIPT_ROOT/build-aom.sh
# configure FFmpeg with Emscripten
$SCRIPT_ROOT
/configure-ffmpeg.sh
# build ffmpeg.wasm core
$SCRIPT_ROOT
/build-ffmpeg.sh
run
()
{
for
name
in
$@
;
do
$SCRIPT_ROOT
/
$name
.sh
done
}
run-all
()
{
SCRIPTS
=(
# install dependencies
install-deps
build-zlib
build-x264
build-x265
build-libvpx
build-wavpack
build-lame
build-fdk-acc
build-ogg
build-vorbis
build-theora
build-opus
build-libwebp
build-freetype2
build-fribidi
build-harfbuzz
build-libass
#build-aom # disabled as it is extremely slow
configure-ffmpeg
build-ffmpeg
)
run
${
SCRIPTS
[@]
}
}
main
()
{
# verify Emscripten version
emcc
-v
if
[[
"
$@
"
==
""
]]
;
then
run-all
else
run
"
$@
"
fi
}
main
"
$@
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment