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
27a0ab7c
Commit
27a0ab7c
authored
Jul 18, 2021
by
Jerome Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add core-st workflow
parent
e2a807fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
133 additions
and
0 deletions
+133
-0
core-st.yml
.github/workflows/core-st.yml
+133
-0
No files found.
.github/workflows/core-st.yml
0 → 100644
View file @
27a0ab7c
name
:
Build FFmpeg.wasm (Single Thread)
on
:
push
:
branches
:
-
n4.3.1-wasm
pull_request
:
branches
:
-
n4.3.1-wasm
env
:
FFMPEG_ST
:
yes
DIST_PATH
:
wasm/packages/core-st/dist
CACHE_KEY_PREFIX
:
ffmpeg.wasm-core-st
# EM_VERSION: 2.0.8
# EM_CACHE_FOLDER: 'emsdk-cache'
jobs
:
build-libs
:
strategy
:
max-parallel
:
1
matrix
:
script
:
-
build-zlib
-
build-x264
-
build-x265
-
build-libvpx
-
build-wavpack
-
build-lame
-
build-fdk-aac
-
build-ogg
-
build-vorbis
-
build-theora
-
build-opus
-
build-libwebp
-
build-freetype2
-
build-fribidi
-
build-harfbuzz
-
build-libass
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
with
:
submodules
:
recursive
-
name
:
Get commit hash
id
:
get-commit-hash
run
:
|
echo "::set-output name=hash::$(git rev-parse --short HEAD)"
-
name
:
Cache libs
uses
:
actions/cache@v2
with
:
path
:
|
build
wasm/cache
key
:
${{ env.CACHE_KEY_PREFIX }}-${{ steps.get-commit-hash.outputs.hash }}-${{ matrix.script }}
restore-keys
:
|
${{ env.CACHE_KEY_PREFIX }}-${{ steps.get-commit-hash.outputs.hash }}-
-
name
:
List cached libs
run
:
ls -R build ||
true
-
name
:
Build FFMpeg Libs
run
:
bash build-with-docker.sh install-deps ${{ matrix.script }}
build-ffmpeg
:
runs-on
:
ubuntu-latest
needs
:
build-libs
steps
:
-
uses
:
actions/checkout@v2
with
:
submodules
:
recursive
-
name
:
Get commit hash
id
:
get-commit-hash
run
:
|
echo "::set-output name=hash::$(git rev-parse --short HEAD)"
-
name
:
Cache multiple paths
uses
:
actions/cache@v2
env
:
GIT_HASH
:
$(git rev-parse --short HEAD)
with
:
path
:
|
build
wasm/cache
key
:
${{ env.CACHE_KEY_PREFIX }}-${{ steps.get-commit-hash.outputs.hash }}-ffmpeg
restore-keys
:
|
${{ env.CACHE_KEY_PREFIX }}-${{ steps.get-commit-hash.outputs.hash }}-
-
name
:
List cached libs
run
:
ls -R build ||
true
-
name
:
Build FFMpeg
run
:
|
bash build-with-docker.sh \
install-deps \
configure-ffmpeg \
build-ffmpeg
-
uses
:
actions/upload-artifact@master
with
:
name
:
ffmpeg-core
path
:
$DIST_PATH
# Disable macos build due to there is no ldconfig command
# during freetype2 build.
# macos-build:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 0
# submodules: recursive
# - 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
# shell: bash
# run: |
# export PATH=$PATH:$PWD/emsdk-cache/emsdk-master/upstream/bin
# bash build.sh
# - uses: actions/upload-artifact@master
# with:
# name: ffmpeg-core-macos
# path: wasm/dist
# 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
# windows-build:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v2
# - name: Build FFMpeg
# shell: bash
# run: |
# bash build.sh
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