diff --git a/.github/workflows/feature.yml b/.github/workflows/feature.yml new file mode 100644 index 0000000..fac269c --- /dev/null +++ b/.github/workflows/feature.yml @@ -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 }}" diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d71f71..688e790 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}")