Skip to content

Commit

Permalink
Add CMake Actions
Browse files Browse the repository at this point in the history
Also add a patch reported needed for MSVC
  • Loading branch information
baconpaul committed Oct 3, 2022
1 parent 9619334 commit aa6783a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Feature

on:
pull_request:
branches:
- main

jobs:
build_feature:
name: Build feature
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
name: linux
dir_build: ./build
- os: macos-latest
name: mac
dir_build: ./build
- os: windows-latest
name: win
dir_build: ./build/Release
steps:

- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive

- name: Build binary
run: |
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
cmake --build ./build --config Release
ls "${{ matrix.dir_build }}"
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ function (addAirwin airwin)
-Wno-parentheses # these ones look like actual bugs tbh
)
endif()
if (MSVC)
target_compile_definitions(${awt} PRIVATE -D_USE_MATH_DEFINES)
endif()

set(CREATE_FN "${awt}CreateEffectInstance")
set(AIRWIN_NAME "${airwin}")
Expand Down

0 comments on commit aa6783a

Please sign in to comment.