diff --git a/.github/workflows/opus.yml b/.github/workflows/opus.yml index 751580a..8124fe2 100644 --- a/.github/workflows/opus.yml +++ b/.github/workflows/opus.yml @@ -87,6 +87,15 @@ jobs: file: "libopus.dylib", rid: "osx-x64" } + - { + name: "MacOS Arm64", + os: macos-latest, + install-deps: "brew install autoconf automake libtool gcc cmake make && export PATH=\"/usr/local/opt/make/libexec/gnubin:$PATH\"", + args: "-DCMAKE_OSX_ARCHITECTURES=arm64", + find-file: "libopus.*.*.*.dylib", + file: "libopus.dylib", + rid: "osx-arm64" + } - { name: "iOS", os: macos-latest, @@ -155,7 +164,7 @@ jobs: OPUS_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1)) echo "OPUS_VERSION=$OPUS_VERSION" >> $GITHUB_ENV git checkout $OPUS_VERSION - cmake -S . -B build ${{ matrix.config.args }} -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -Wno-dev + cmake -S . -B build ${{ matrix.config.args }} -DOPUS_BUILD_SHARED_LIBRARY=ON -DCMAKE_BUILD_TYPE=Release -Wno-dev cmake --build build --config Release mkdir -p "${{ github.workspace }}/libs/libopus/${{ matrix.config.rid }}/native" rm -f "${{ github.workspace }}/libs/libopus/${{ matrix.config.rid }}/native/${{ matrix.config.file }}"