Skip to content

Commit

Permalink
Opus: Support Mac OSX Arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
OoLunar committed May 23, 2024
1 parent 85d2c0b commit d3eb8b5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/opus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 }}"
Expand Down

0 comments on commit d3eb8b5

Please sign in to comment.