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
17f26b9a
Commit
17f26b9a
authored
Aug 31, 2020
by
Jerome Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update workflow
parent
829a1658
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
20 deletions
+31
-20
main.yml
.github/workflows/main.yml
+25
-14
build-with-docker.sh
build-with-docker.sh
+5
-4
build.sh
build.sh
+1
-2
No files found.
.github/workflows/main.yml
View file @
17f26b9a
name
:
Pt.
1 Build with GCC
name
:
Pt.
2 Build with Emscripten
# Controls when the action will run. Triggers the workflow on push or pull request
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
# events but only for the master branch
on
:
on
:
push
:
push
:
branches
:
[
n4.3.1-p
1
]
branches
:
[
n4.3.1-p
2
]
pull_request
:
pull_request
:
branches
:
[
n4.3.1-p1
]
branches
:
[
n4.3.1-p2
]
env
:
EM_VERSION
:
1.39.18
EM_CACHE_FOLDER
:
'
emsdk-cache'
jobs
:
jobs
:
linux-build_with_docker
:
linux-build_with_docker
:
...
@@ -16,25 +20,32 @@ jobs:
...
@@ -16,25 +20,32 @@ jobs:
shell
:
bash
shell
:
bash
run
:
|
run
:
|
bash build-with-docker.sh
bash build-with-docker.sh
-
uses
:
actions/upload-artifact@master
#
- uses: actions/upload-artifact@master
with
:
#
with:
name
:
ffmpeg-linux
#
name: ffmpeg-linux
path
:
ffmpeg
#
path: ffmpeg
macos-build
:
macos-build
:
runs-on
:
macos-latest
runs-on
:
macos-latest
steps
:
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
-
name
:
Setup cache
id
:
cache-system-libraries
uses
:
actions/cache@v2
with
:
path
:
${{env.EM_CACHE_FOLDER}}
key
:
${{env.EM_VERSION}}-${{ runner.os }}
-
uses
:
mymindstorm/setup-emsdk@v6
with
:
version
:
${{env.EM_VERSION}}
actions-cache-folder
:
${{env.EM_CACHE_FOLDER}}
-
name
:
Build FFMpeg
-
name
:
Build FFMpeg
shell
:
bash
shell
:
bash
run
:
|
run
:
|
# Make sure to use gcc-8 instead of the default gcc
shopt -s expand_aliases
alias gcc='gcc-8'
bash build.sh
bash build.sh
-
uses
:
actions/upload-artifact@master
#
- uses: actions/upload-artifact@master
with
:
#
with:
name
:
ffmpeg-macos
#
name: ffmpeg-macos
path
:
ffmpeg
#
path: ffmpeg
# Not working with error messsage:
# Not working with error messsage:
# C:\ProgramData\Chocolatey\lib\mingw\tools\install\mingw64\x86_64-w64-mingw32\bin\ar.exe: libavfilter/vsink_null: No such file or directory
# C:\ProgramData\Chocolatey\lib\mingw\tools\install\mingw64\x86_64-w64-mingw32\bin\ar.exe: libavfilter/vsink_null: No such file or directory
# windows-build:
# windows-build:
...
...
build-with-docker.sh
View file @
17f26b9a
#!/bin/bash -x
#!/bin/bash -x
EM_VERSION
=
1.39.18-upstream
FLAGS
=
""
FLAGS
=
""
# Attach TTY only when available, this is for running in Gihub Actions
# Attach TTY only when available, this is for running in Gihub Actions
if
[
-t
1
]
;
then
FLAGS
=
"-it"
;
fi
if
[
-t
1
]
;
then
FLAGS
=
"-it"
;
fi
docker pull
gcc:8
docker pull
trzeci/emscripten:
$EM_VERSION
docker run
$FLAGS
\
docker run
$FLAGS
\
-v
$PWD
:/
usr/
src
\
-v
$PWD
:/src
\
gcc:8
\
trzeci/emscripten:
$EM_VERSION
\
sh
-c
'
cd /usr/src &&
bash ./build.sh'
sh
-c
'bash ./build.sh'
build.sh
View file @
17f26b9a
#!/bin/bash
#!/bin/bash
./configure
--disable-x86asm
emcc
-v
make
-j
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