Skip to content

MacOS support

MacOS support #19

Workflow file for this run

name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build_windows:
runs-on: windows-2022
defaults:
run:
shell: cmd
strategy:
matrix:
arch:
- Win32
- x64
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout
uses: actions/checkout@v4
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- name: Build
run: |
mkdir build
cmake -A ${{ matrix.arch }} -DFOO_SAMPLE=ON build
msbuild -v:m -p:Configuration=Release -p:Platform=${{ matrix.arch }} build\foosdk.sln
build_macos:
runs-on: macos-26
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
mkdir build
cmake -DFOO_SAMPLE=ON -DCMAKE_BUILD_TYPE=Release build
cmake --build build --parallel