Skip to content

Commit

Permalink
Add action to build and test XCode universal binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
philipnbbc committed Oct 6, 2023
1 parent 153b367 commit 1820bda
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,20 @@ jobs:
-DBMX_TEST_WITH_VALGRIND=ON
-DLIBMXF_TEST_WITH_VALGRIND=ON
-DLIBMXFPP_TEST_WITH_VALGRIND=ON
- name: macos
- name: macos-brew
os: macos-latest
cmake_config_args: >-
-DCMAKE_BUILD_TYPE=Debug
-DBMX_BUILD_WITH_LIBCURL=ON
- name: macos-xcode-universal
os: macos-latest
cmake_config_args: >-
-G Xcode
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
-DBUILD_SHARED_LIBS=OFF
-DBMX_BUILD_URIPARSER_SOURCE=ON
-DBMX_BUILD_WITH_LIBCURL=ON
- name: windows
os: windows-latest
cmake_build_args: >-
Expand All @@ -38,7 +47,7 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Install dependencies (Ubuntu)
- name: Install dependencies (ubuntu)
if: ${{ contains(matrix.os, 'ubuntu') }}
shell: bash
run: |
Expand All @@ -54,12 +63,19 @@ jobs:
liburiparser-dev \
libexpat1-dev \
libcurl4-openssl-dev
- name: Install dependencies (MacOS)
if: ${{ contains(matrix.os, 'macos') }}
- name: Install dependencies (macos-brew)
if: ${{ matrix.name == 'macos-brew' }}
shell: bash
run: |
brew install git cmake expat uriparser curl
- name: Install dependencies (macos-xcode-universal)
if: ${{ matrix.name == 'macos-xcode-universal' }}
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Show Versions
shell: bash
run: |
Expand Down

0 comments on commit 1820bda

Please sign in to comment.