Skip to content

Commit

Permalink
Fix OSX build architecture.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1maker committed Aug 30, 2024
1 parent 6020c12 commit 01d893b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/cmake-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: macos-latest
arch: x86_64

steps:
- name: Checkout code
Expand All @@ -31,21 +28,20 @@ jobs:
sudo apt-get update
sudo apt-get install -y libspeechd-dev
- name: Configure CMake
run: |
if [ "${{ matrix.arch }}" == "x86_64" ]; then
cmake . -B build -DCMAKE_OSX_ARCHITECTURES=x86_64
else
cmake . -B build
fi
run: cmake . -B build -DCMAKE_OSX_ARCHITECTURES=x86_64

- name: Build with CMake
run: cmake --build build --config Release



- name: Archive artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}-${{ matrix.arch }}-build
name: ${{ matrix.os }}-build
path: build


0 comments on commit 01d893b

Please sign in to comment.