Files
open62541/.github/workflows/build_macos.yml
Ómar Högni Guðmarsson 79e47f8983 feat(ci): add macos workflow
Add workflow to assist in maintaining
compatibility with macos.
2025-03-18 14:58:00 +01:00

47 lines
1.4 KiB
YAML

name: macOS Build & Test
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-latest]
build:
- name: "Build default options"
cmake_options:
- name: "Build shared library"
cmake_options: -DBUILD_SHARED_LIBS=ON
- name: "Build amalgamation"
cmake_options: -DUA_ENABLE_AMALGAMATION=ON
- name: "Build with encryption"
cmd_deps: brew install mbedtls
cmake_options: -DUA_ENABLE_ENCRYPTION=MBEDTLS
- name: "Build shared lib with INLINABLE_EXPORT=ON"
cmd_deps: brew install mbedtls
cmake_options: -DBUILD_SHARED_LIBS=ON -DUA_ENABLE_INLINABLE_EXPORT=ON
- name: "Build shared lib with encryption, amalgamation, and INLINEABLE_EXPORT"
cmd_deps: brew install mbedtls
cmake_options: -DBUILD_SHARED_LIBS=ON -DUA_ENABLE_ENCRYPTION=MBEDTLS -DUA_ENABLE_AMALGAMATION=ON -DUA_ENABLE_INLINABLE_EXPORT=ON
name: ${{ matrix.os }}-${{ matrix.build.name }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Dependencies
run: |
${{ matrix.build.cmd_deps }}
- name: ${{ matrix.build.name }}
run: |
rm -rf build
cmake -B build ${{matrix.build.cmake_options}}
cmake --build build -j $(sysctl -n hw.activecpu)