Skip to content

Commit

Permalink
chore: refine ffmpeg CI flow
Browse files Browse the repository at this point in the history
  • Loading branch information
halajohn committed Jan 27, 2025
1 parent 5644518 commit aa94ab7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_linux_ubuntu2204.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
if [ "${{ matrix.arch }}" = "x86" ]; then
EXTRA_ARGS="is_clang=false ten_enable_ten_manager=false ten_manager_enable_frontend=false ten_rust_enable_tests=false ten_manager_enable_tests=false ten_enable_go_binding=false ten_enable_python_binding=false ten_enable_nodejs_binding=false ten_manager_enable_frontend=false ten_enable_integration_tests_prebuilt=false"
else
EXTRA_ARGS="is_clang=${{ matrix.compiler == 'gcc' && 'false' || 'true' }} log_level=1 enable_serialized_actions=true ten_enable_serialized_rust_action=true ten_rust_enable_gen_cargo_config=false ten_enable_cargo_clean=true ten_enable_go_lint=true ten_enable_rust_incremental_build=false ten_manager_enable_frontend=false ten_enable_integration_tests_prebuilt=false"
EXTRA_ARGS="is_clang=${{ matrix.compiler == 'gcc' && 'false' || 'true' }} log_level=1 enable_serialized_actions=true ten_enable_serialized_rust_action=true ten_rust_enable_gen_cargo_config=false ten_enable_cargo_clean=true ten_enable_go_lint=true ten_enable_rust_incremental_build=false ten_manager_enable_frontend=false ten_enable_integration_tests_prebuilt=false ten_enable_ffmpeg_extensions=true"
fi
tgn gen linux x64 ${{ matrix.build_type }} -- $EXTRA_ARGS
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
df -h .
tgn gen mac arm64 ${{ matrix.build_type }} -- log_level=1 enable_serialized_actions=true ten_enable_serialized_rust_action=true ten_rust_enable_gen_cargo_config=false ten_enable_cargo_clean=true ten_enable_python_binding=false ten_enable_rust_incremental_build=false ten_manager_enable_frontend=false ten_enable_integration_tests_prebuilt=false ten_enable_nodejs_binding=false
tgn gen mac arm64 ${{ matrix.build_type }} -- log_level=1 enable_serialized_actions=true ten_enable_serialized_rust_action=true ten_rust_enable_gen_cargo_config=false ten_enable_cargo_clean=true ten_enable_python_binding=false ten_enable_rust_incremental_build=false ten_manager_enable_frontend=false ten_enable_integration_tests_prebuilt=false ten_enable_nodejs_binding=false ten_enable_ffmpeg_extensions=true
tgn build mac arm64 ${{ matrix.build_type }}
Expand Down
11 changes: 1 addition & 10 deletions build/ten_runtime/options.gni
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,7 @@ declare_args() {
ten_enable_example_packages = true

# If set, build native ffmpeg relevant extension and app
#
# ffmpeg has continuously made modifications, and those modifications might
# not be backward compatible. In order to simplified the coding and the CI
# environments, we embed a ffmpeg source codes in the TEN framework source
# tree, and build it by ourselves. This embedded ffmpeg can be built on clang
# and gcc, debug or release. To minimize the CI resource consumption, and
# increase the CI efficiency, we just enable the building of the ffmpeg
# relevant modules in a restricted combination.
ten_enable_ffmpeg_extensions =
is_linux && is_debug && is_clang && target_cpu == "x64"
ten_enable_ffmpeg_extensions = false
}

declare_args() {
Expand Down

0 comments on commit aa94ab7

Please sign in to comment.