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
58734078
Unverified
Commit
58734078
authored
Aug 26, 2020
by
jeromewu
Committed by
GitHub
Aug 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Github Actions to build with Linux and MacOS (#3)
parent
88b3eeaa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
0 deletions
+62
-0
main.yml
.github/workflows/main.yml
+47
-0
build-with-docker.sh
build-with-docker.sh
+11
-0
build.sh
build.sh
+4
-0
No files found.
.github/workflows/main.yml
0 → 100644
View file @
58734078
name
:
Pt.1 Build with GCC
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on
:
push
:
branches
:
[
n4.3.1-p1-ci
]
pull_request
:
branches
:
[
n4.3.1-p1-ci
]
jobs
:
linux-build_with_docker
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Build FFMpeg
shell
:
bash
run
:
|
bash build-with-docker.sh
-
uses
:
actions/upload-artifact@master
with
:
name
:
ffmpeg-linux
path
:
ffmpeg
macos-build
:
runs-on
:
macos-latest
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Build FFMpeg
shell
:
bash
run
:
|
# Make sure to use gcc-8 instead of the default gcc
shopt -s expand_aliases
alias gcc='gcc-8'
bash build.sh
-
uses
:
actions/upload-artifact@master
with
:
name
:
ffmpeg-macos
path
:
ffmpeg
# 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
build-with-docker.sh
0 → 100755
View file @
58734078
#!/bin/bash -x
FLAGS
=
""
# Attach TTY only when available, this is for running in Gihub Actions
if
[
-t
1
]
;
then
FLAGS
=
"-it"
;
fi
docker pull gcc:8
docker run
$FLAGS
\
-v
$PWD
:/usr/src
\
gcc:8
\
sh
-c
'cd /usr/src && bash ./build.sh'
build.sh
0 → 100755
View file @
58734078
#!/bin/bash
./configure
--disable-x86asm
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