Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
5c1a50d
Update build_ffmpeg.sh to ready for CI
Khang-NT Apr 8, 2018
18db17b
Init CircleCI config
Khang-NT Apr 8, 2018
0e9f93a
Remove binary files from source
Khang-NT Apr 8, 2018
39d9734
Faster checkout step
Khang-NT Apr 8, 2018
9998f23
Correct CircleCI config.yml
Khang-NT Apr 8, 2018
57f4a5e
Temporary disable branch filter
Khang-NT Apr 8, 2018
f245b40
Temporary disable branch filter
Khang-NT Apr 8, 2018
24d6f2e
Workaround to fix CircleCI error
Khang-NT Apr 8, 2018
155fd48
Correct CircleCI config.yml
Khang-NT Apr 8, 2018
245f711
Correct CircleCI config.yml
Khang-NT Apr 8, 2018
a3a12af
Extract compressed files in silent
Khang-NT Apr 8, 2018
0c42545
Checkout in specific branch
Khang-NT Apr 8, 2018
b910846
Fix build script syntax error
Khang-NT Apr 8, 2018
3688aac
Use default checkout step
Khang-NT Apr 8, 2018
47d187f
Fix build script syntax error
Khang-NT Apr 8, 2018
d47d98a
Fix build script syntax error
Khang-NT Apr 8, 2018
7f25bcb
Fix wrong cross compile config
Khang-NT Apr 8, 2018
0b8d9c7
Upgrade FFmpeg version 3.4.2
Khang-NT Apr 8, 2018
9b7c532
Fix yasm not found
Khang-NT Apr 8, 2018
55a1e22
Update CircleCI config: copy and store build logs on fail
Khang-NT Apr 8, 2018
68840b4
Fix compile yasm error
Khang-NT Apr 8, 2018
6caa1f6
Correct CircleCI config.yml
Khang-NT Apr 8, 2018
1555c51
Correct CircleCI config.yml
Khang-NT Apr 8, 2018
b2e9c2a
Correct CircleCI config.yml
Khang-NT Apr 8, 2018
268c7e3
Use absolute path to artifacts folder
Khang-NT Apr 8, 2018
18b94d1
Collect FFmpeg config log
Khang-NT Apr 8, 2018
f0bf366
Fix copy artifacts wrong path
Khang-NT Apr 8, 2018
88814f3
Disable libx264 because of build failure
Khang-NT Apr 8, 2018
7a6c15b
Rollback to FFmpeg 3.3.2
Khang-NT Apr 8, 2018
1fbdc9c
Update CircleCI config: correct workspace paths
Khang-NT Apr 8, 2018
c0a0a77
Update CircleCI config: correct workspace paths
Khang-NT Apr 8, 2018
d8188c3
Update CircleCI config: correct workspace paths
Khang-NT Apr 8, 2018
115e3db
Update CircleCI config: correct workspace paths
Khang-NT Apr 8, 2018
939fbd3
Auto create Github release
Khang-NT Apr 8, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 119 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
version: 2

defaults: &defaults
working_directory: ~/source
docker:
- image: vnkhangnt/buildpack-deps:trusty
environment:
FFMPEG_VERSION: 3.3.2
steps:
- checkout
- run:
name: Compile FFmpeg
command: |
mkdir -p build_logs;
export FINAL_DIR=$(pwd)/artifacts/$TARGET;
export BUILD_DIR=$(pwd)/build_scripts/build_dir && mkdir -p $BUILD_DIR;
./build_scripts/build_ffmpeg.sh $TARGET $BUILD_DIR $FINAL_DIR;
- run:
name: Copy error report
command: |
mkdir -p build_logs/ffmpeg;
cp build_scripts/ffmpeg-$FFMPEG_VERSION/config.log build_logs/ffmpeg/ || true;
when: on_fail
- store_artifacts:
path: build_logs
- persist_to_workspace:
root: artifacts
paths:
- "*/*/ffmpeg"

jobs:
build_arm:
environment:
TARGET: arm
<< : *defaults

build_arm_v7a:
environment:
TARGET: armv7-a
<< : *defaults

build_arm_v7a_neon:
environment:
TARGET: arm-v7n
<< : *defaults

build_arm_v8a:
environment:
TARGET: arm64-v8a
<< : *defaults

build_arm_x86:
environment:
TARGET: i686
<< : *defaults

build_arm_x86_64:
environment:
TARGET: x86_64
<< : *defaults

build_native_linux:
environment:
TARGET: native
<< : *defaults

create_release:
docker:
- image: vnkhangnt/buildpack-deps:trusty
working_directory: ~/source
steps:
- attach_workspace:
at: artifacts
- run:
name: Create Github Release
command: |
export UPLOAD_FOLDER="uploads" && mkdir -p $UPLOAD_FOLDER;
cd artifacts;
for f in ./*; do
tar -cjf $UPLOAD_FOLDER/$f-full.tar.bz2 -C $f/full .;
tar -cjf $UPLOAD_FOLDER/$f-lite.tar.bz2 -C $f/lite .;
done;
curl -L -O 'https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_linux_amd64.zip';
unzip ghr_v0.5.4_linux_amd64.zip -d .;
sudo chmod +x ghr;
TAG=`date +%Y-%m-%d`;
./ghr \
-t "$GITHUB_TOKEN" \
-u 'Khang-NT' \
-r 'ffmpeg-binary-android' \
-c "$CIRCLE_SHA1" \
-delete \
"$TAG" $UPLOAD_FOLDER

workflows:
version: 2
build-and-create-release:
jobs:
- build_arm
- build_arm_v7a
- build_arm_v7a_neon
- build_arm_v8a
- build_arm_x86
- build_arm_x86_64
- build_native_linux
- create_release:
requires:
- build_arm
- build_arm_v7a
- build_arm_v7a_neon
- build_arm_v8a
- build_arm_x86
- build_arm_x86_64
- build_native_linux
filters:
branches:
only: master


Binary file removed arm64-v8a/bin/ffmpeg
Binary file not shown.
Binary file removed armeabi-v7-neon/bin/ffmpeg
Binary file not shown.
Binary file removed armeabi-v7a/bin/ffmpeg
Binary file not shown.
Binary file removed armeabi/bin/ffmpeg
Binary file not shown.
Loading