Skip to content

Commit aee03a7

Browse files
KhoraLeeAniLeo
authored andcommitted
ci: build and use universal binary on macOS
1 parent 082e6f4 commit aee03a7

File tree

17 files changed

+18
-15
lines changed

17 files changed

+18
-15
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
# os: [ubuntu-latest, windows-latest, macos-latest]
14-
build: [ubuntu-x64, windows-x64, macos-x64, macos-arm64]
14+
build: [ubuntu-x64, windows-x64, macos-universal]
1515
config: [Release]
1616
include:
1717
- build: ubuntu-x64
@@ -24,16 +24,11 @@ jobs:
2424
triplet: x64-win-llvm-static-release
2525
vcpkg-root: C:\vcpkg
2626
extra-args: --overlay-triplets=./triplets
27-
- build: macos-x64
27+
- build: macos-universal
2828
os: macos-latest
29-
triplet: x64-osx-release
29+
triplet: universal-osx-release
3030
vcpkg-root: /usr/local/share/vcpkg
31-
extra-args: ""
32-
- build: macos-arm64
33-
os: macos-latest
34-
triplet: arm64-osx-release
35-
vcpkg-root: /usr/local/share/vcpkg
36-
extra-args: ""
31+
extra-args: --overlay-triplets=./triplets
3732

3833
steps:
3934
- uses: actions/checkout@v3

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ if (WIN32 AND NOT MINGW)
1616
"psapi;strmiids;uuid;oleaut32;shlwapi;ws2_32;ole32;user32;bcrypt")
1717
elseif (APPLE)
1818
target_link_libraries(${FFMPEG_CORE_NAME} INTERFACE
19-
"${CMAKE_CURRENT_SOURCE_DIR}/lib/macos/${ARCHITECTURE}/libavformat.a"
20-
"${CMAKE_CURRENT_SOURCE_DIR}/lib/macos/${ARCHITECTURE}/libavcodec.a"
21-
"${CMAKE_CURRENT_SOURCE_DIR}/lib/macos/${ARCHITECTURE}/libswscale.a"
22-
"${CMAKE_CURRENT_SOURCE_DIR}/lib/macos/${ARCHITECTURE}/libavutil.a"
23-
"${CMAKE_CURRENT_SOURCE_DIR}/lib/macos/${ARCHITECTURE}/libavfilter.a"
24-
"${CMAKE_CURRENT_SOURCE_DIR}/lib/macos/${ARCHITECTURE}/libswresample.a"
19+
"${CMAKE_CURRENT_SOURCE_DIR}/lib/macos/libavformat.a"
20+
"${CMAKE_CURRENT_SOURCE_DIR}/lib/macos/libavcodec.a"
21+
"${CMAKE_CURRENT_SOURCE_DIR}/lib/macos/libswscale.a"
22+
"${CMAKE_CURRENT_SOURCE_DIR}/lib/macos/libavutil.a"
23+
"${CMAKE_CURRENT_SOURCE_DIR}/lib/macos/libavfilter.a"
24+
"${CMAKE_CURRENT_SOURCE_DIR}/lib/macos/libswresample.a"
2525
"-framework CoreServices" "-framework CoreFoundation" "-framework AudioUnit"
2626
"-framework AudioToolbox" "-framework CoreAudio" "-framework CoreMedia"
2727
"-framework VideoToolbox" "-framework CoreVideo" "-framework Security")

lib/macos/arm64/libavcodec.a

-16.4 MB
Binary file not shown.

lib/macos/arm64/libavutil.a

-2.49 MB
Binary file not shown.

lib/macos/arm64/libswresample.a

-395 KB
Binary file not shown.

lib/macos/arm64/libswscale.a

-3.04 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)