devops: support ffmpeg MacOS arm64 builds (#11075)
Drive-by's: - support ffmpeg build on MacOS 12 - rename ffmpeg executable for Ubuntu arm64 to `ffmpeg-linux`
This commit is contained in:
parent
0514ecc1af
commit
3dc22245d8
|
|
@ -60,6 +60,13 @@ elif [[ "$BUILD_FLAVOR" == "ffmpeg-mac" ]]; then
|
|||
EXPECTED_HOST_OS="Darwin"
|
||||
EXPECTED_HOST_OS_VERSION="11.6"
|
||||
BUILD_BLOB_NAME="ffmpeg-mac.zip"
|
||||
elif [[ "$BUILD_FLAVOR" == "ffmpeg-mac-arm64" ]]; then
|
||||
BROWSER_NAME="ffmpeg"
|
||||
EXTRA_BUILD_ARGS="--mac"
|
||||
EXPECTED_HOST_OS="Darwin"
|
||||
EXPECTED_HOST_OS_VERSION="11.6"
|
||||
EXPECTED_ARCH="arm64"
|
||||
BUILD_BLOB_NAME="ffmpeg-mac-arm64.zip"
|
||||
elif [[ "$BUILD_FLAVOR" == "ffmpeg-linux" ]]; then
|
||||
BROWSER_NAME="ffmpeg"
|
||||
EXTRA_BUILD_ARGS="--linux"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
1006
|
||||
1007
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
ffmpeg-mac.zip
|
||||
ffmpeg-mac-arm64.zip
|
||||
ffmpeg-linux.zip
|
||||
ffmpeg-linux-arm64.zip
|
||||
ffmpeg-win64.zip
|
||||
|
|
|
|||
|
|
@ -29,11 +29,11 @@ source "${SCRIPT_FOLDER}/../utils.sh"
|
|||
|
||||
CURRENT_HOST_OS_VERSION=$(getMacVersion)
|
||||
# As of Oct 2021, we build FFMPEG for Mac with Xcode 13 to align toolchains.
|
||||
if [[ "${CURRENT_HOST_OS_VERSION}" == "11."* ]]; then
|
||||
selectXcodeVersionOrDie "13"
|
||||
else
|
||||
if [[ "${CURRENT_HOST_OS_VERSION}" == "10."* ]]; then
|
||||
echo "ERROR: ${CURRENT_HOST_OS_VERSION} is not supported"
|
||||
exit 1
|
||||
else
|
||||
selectXcodeVersionOrDie "13"
|
||||
fi
|
||||
|
||||
source ./CONFIG.sh
|
||||
|
|
|
|||
|
|
@ -69,8 +69,8 @@ elif [[ "$1" == --cross-compile-win64 ]]; then
|
|||
elif [[ "$1" == "--cross-compile-linux-arm64" ]]; then
|
||||
ensure_docker_or_die
|
||||
|
||||
time docker run --init --rm -v"${PWD}":/host ${dockerflags} ubuntu:18.04 bash /host/crosscompile-from-linux.sh --linux-arm64 /host/output/ffmpeg-linux-arm64
|
||||
cd output && zip ffmpeg.zip ffmpeg-linux-arm64 "${LICENSE_FILE}"
|
||||
time docker run --init --rm -v"${PWD}":/host ${dockerflags} ubuntu:18.04 bash /host/crosscompile-from-linux.sh --linux-arm64 /host/output/ffmpeg-linux
|
||||
cd output && zip ffmpeg.zip ffmpeg-linux "${LICENSE_FILE}"
|
||||
else
|
||||
echo "ERROR: unsupported platform - $1"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue