Skip to content

Commit 9037ea1

Browse files
Update opus.yml
1 parent db635b4 commit 9037ea1

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/opus.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,3 +381,34 @@ jobs:
381381
with:
382382
name: android-arm32-libopus.so
383383
path: ./build/libopus.so
384+
385+
MacOS_Build_x64:
386+
runs-on: macos-latest
387+
steps:
388+
- uses: actions/checkout@v4
389+
390+
- name: Clone Repository
391+
run: git clone https://github.com/xiph/opus.git
392+
393+
- name: Install AutoConf, AutoMake and LibTool # Needed for autogen.sh
394+
run: brew install autoconf automake libtool
395+
396+
- name: Autogen
397+
run: ./opus/autogen.sh
398+
399+
- name: Create Build Dir
400+
run: mkdir build
401+
402+
- name: Configure
403+
working-directory: ./build
404+
run: cmake ../opus -DCMAKE_BUILD_TYPE=Release -DOPUS_BUILD_PROGRAMS=ON -DBUILD_TESTING=ON -DBUILD_SHARED_LIBS=ON
405+
406+
- name: Build
407+
working-directory: ./build
408+
run: cmake --build . -j 2 --config Release --target package
409+
410+
- name: Upload Artifact
411+
uses: actions/upload-artifact@v4
412+
with:
413+
name: macos-x64-opus.a
414+
path: ./build/Release/opus.a

0 commit comments

Comments
 (0)