From 0c40552ea760a552cc8b0a7586f0cbd41dc49b0e Mon Sep 17 00:00:00 2001 From: "yilun.zhang" Date: Tue, 21 Jul 2026 08:19:56 +0800 Subject: [PATCH 1/2] fix the failure in Actions Signed-off-by: yilun.zhang --- .github/actions/libiamf-builder/action.yml | 5 +++-- .github/workflows/ci.yml | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/actions/libiamf-builder/action.yml b/.github/actions/libiamf-builder/action.yml index 0d4c292d..cb191423 100644 --- a/.github/actions/libiamf-builder/action.yml +++ b/.github/actions/libiamf-builder/action.yml @@ -13,7 +13,8 @@ runs: steps: - shell: bash run: | + git submodule update --init --recursive cd code - cmake ${{ inputs.build-options }} . - make + cmake -B build ${{ inputs.build-options }} . + cmake --build build diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4705c158..6499cc70 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,8 @@ jobs: uses: actions/checkout@v4 - name: Build uses: ./.github/actions/libiamf-builder + with: + build-options: -DIAMF_TEST_TOOL=ON macos-arm64: runs-on: macos-latest steps: @@ -18,7 +20,7 @@ jobs: - name: Build uses: ./.github/actions/libiamf-builder with: - build-options: -DCODEC_CAP=off + build-options: -DIAMF_TEST_TOOL=ON macos-amd64: runs-on: macos-14 steps: @@ -27,4 +29,4 @@ jobs: - name: Build uses: ./.github/actions/libiamf-builder with: - build-options: -DCODEC_CAP=off + build-options: -DIAMF_TEST_TOOL=ON From 6b1ab2fd04e50a1cb323d21226fea4ab08d5645e Mon Sep 17 00:00:00 2001 From: "yilun.zhang" Date: Tue, 21 Jul 2026 08:39:52 +0800 Subject: [PATCH 2/2] fix building running on macos Signed-off-by: yilun.zhang --- code/dep_codecs/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/dep_codecs/CMakeLists.txt b/code/dep_codecs/CMakeLists.txt index a4769fe9..fd725085 100755 --- a/code/dep_codecs/CMakeLists.txt +++ b/code/dep_codecs/CMakeLists.txt @@ -7,7 +7,7 @@ include(ExternalProject) ExternalProject_Add( dep_opus URL https://downloads.xiph.org/releases/opus/opus-1.4.tar.gz - CMAKE_ARGS -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=${DEP_CODECS_DIR} -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} + CMAKE_ARGS -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=${DEP_CODECS_DIR} -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DCMAKE_POLICY_VERSION_MINIMUM=3.5 ) # Fetch fdk-aac(2.0.3) library