Can choose between static and shared lib version with cmake option. #95
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macosx-clang-build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
LC_ALL: en_US.UTF-8 | |
LANG: en_US.UTF-8 | |
jobs: | |
build: | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: install dependencies | |
run: | | |
brew install pkg-config | |
- name: get cmake | |
uses: lukka/get-cmake@latest | |
with: | |
useLocalCache: true | |
useCloudCache: false | |
cmakeVersion: "3.27.0" | |
- name: run build | |
uses: lukka/[email protected] | |
with: | |
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' | |
configurePreset: 'ninja-multi-vcpkg' | |
configurePresetAdditionalArgs: "['-DIS_CI_BUILD=true']" | |
buildPreset: 'ninja-multi-vcpkg' | |
- name: run unit tests | |
run: | | |
echo "Running seika tests!" | |
${{ github.workspace }}/builds/Debug/seika_test |