Skip to content

Commit 84ada31

Browse files
Update opus.yml
1 parent 5bc94a8 commit 84ada31

1 file changed

Lines changed: 34 additions & 4 deletions

File tree

.github/workflows/opus.yml

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ jobs:
401401

402402
- name: Configure
403403
working-directory: ./build
404-
run: cmake ../opus -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
404+
run: cmake ../opus -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_OSX_ARCHITECTURES=x64
405405

406406
- name: Build
407407
working-directory: ./build
@@ -410,6 +410,36 @@ jobs:
410410
- name: Upload Artifact
411411
uses: actions/upload-artifact@v4
412412
with:
413-
name: macos-x64-libopus.a
414-
path: ./build/libopus.a
415-
413+
name: macos-x64-libopus.0.10.1.dylib
414+
path: ./build/libopus.0.10.1.dylib
415+
416+
MacOS_Build_x32:
417+
runs-on: macos-latest
418+
steps:
419+
- uses: actions/checkout@v4
420+
421+
- name: Clone Repository
422+
run: git clone https://github.com/xiph/opus.git
423+
424+
- name: Install AutoConf, AutoMake and LibTool # Needed for autogen.sh
425+
run: brew install autoconf automake libtool
426+
427+
- name: Autogen
428+
run: ./opus/autogen.sh
429+
430+
- name: Create Build Dir
431+
run: mkdir build
432+
433+
- name: Configure
434+
working-directory: ./build
435+
run: cmake ../opus -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_OSX_ARCHITECTURES=x86
436+
437+
- name: Build
438+
working-directory: ./build
439+
run: cmake --build .
440+
441+
- name: Upload Artifact
442+
uses: actions/upload-artifact@v4
443+
with:
444+
name: macos-x32-libopus.0.10.1.dylib
445+
path: ./build/libopus.0.10.1.dylib

0 commit comments

Comments
 (0)