]> O.S.I.I.S - jp/vkvg.git/commitdiff
Worflow test (#68)
authorj-p <jp_bruyere@hotmail.com>
Tue, 25 Jan 2022 11:08:22 +0000 (12:08 +0100)
committerGitHub <noreply@github.com>
Tue, 25 Jan 2022 11:08:22 +0000 (11:08 +0000)
* Create cmake.yml, win32 isnanf debug

.github/workflows/cmake.yml [new file with mode: 0644]
README.md
src/cross_os.h

diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
new file mode 100644 (file)
index 0000000..3bcda67
--- /dev/null
@@ -0,0 +1,99 @@
+name: CMake
+
+on:
+  push:
+    branches: [ '*' ]
+  pull_request:
+    branches: [ master ]
+  workflow_dispatch:
+
+jobs:
+  Win_jorb:
+    runs-on: windows-latest
+    strategy:
+      matrix:
+        build_config: ['Debug', 'Release']
+        arch: ['x64', 'Win32']
+    defaults:
+      run:
+        shell: cmd
+    env:
+      VULKAN_SDK: ${{ github.workspace }}\VulkanSDK
+
+    steps:
+    - uses: actions/checkout@v2
+    - uses: GuillaumeFalourd/setup-windows10-sdk-action@v1
+    - uses: actions/checkout@v2
+      with:
+        repository: 'krOoze/vk_sdk_lite'
+        path: ${{ env.VULKAN_SDK }}
+        ref: windows
+        persist-credentials: false
+    - uses: actions/checkout@v2
+      with:
+        path: 'source'
+        persist-credentials: false
+    - run: md source\build
+    - run: cmake -G "Visual Studio 16 2019" -A ${{ matrix.arch }} .. -DVKVG_RECORDING=false -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DVKVG_SVG=false -DGIT_SUBMODULE=true
+      working-directory: source\build
+    - run: cmake --build . --config ${{ matrix.build_config }}
+      working-directory: source\build
+
+  linux_jorb:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        build_config: ['Debug', 'Release']
+    defaults:
+      run:
+        shell: bash
+    env:
+      VULKAN_SDK: ${{ github.workspace }}/VulkanSDK/x86_64
+
+    steps:
+    - uses: actions/checkout@v2
+      with:
+        repository: 'krOoze/vk_sdk_lite'
+        path: 'VulkanSDK'
+        ref: linux
+        persist-credentials: false
+    - run: echo "${{ env.VULKAN_SDK }}/bin" >> $GITHUB_PATH
+    - run: sudo apt update && sudo apt install xorg-dev
+    - uses: actions/checkout@v2
+      with:
+        path: 'source'
+        persist-credentials: false
+    - run: mkdir -p source/build
+    - run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_config }} -G "Unix Makefiles" .. -DVKVG_RECORDING=false -DVKVG_SVG=false -DGIT_SUBMODULE=true
+      working-directory: source/build
+    - run: cmake --build . --config ${{ matrix.build_config }}
+      working-directory: source/build
+
+  mac_jorb:
+    runs-on: macos-latest
+    strategy:
+      matrix:
+        build_config: ['Debug', 'Release']
+    defaults:
+      run:
+        shell: bash
+    env:
+      VULKAN_SDK: ${{ github.workspace }}/VulkanSDK/macOS
+
+    steps:
+    - uses: actions/checkout@v2
+      with:
+        repository: 'krOoze/vk_sdk_lite'
+        path: 'VulkanSDK'
+        ref: macos
+        persist-credentials: false
+    - run: echo "${{ env.VULKAN_SDK }}/bin" >> $GITHUB_PATH
+    - uses: actions/checkout@v2
+      with:
+        path: 'source'
+        persist-credentials: false
+    - run: mkdir -p source/build
+    - run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_config }} .. -DVKVG_RECORDING=false -DVKVG_SVG=false -DGIT_SUBMODULE=true
+      working-directory: source/build
+    - run: cmake --build . --config ${{ matrix.build_config }}
+      working-directory: source/build
index c0810d105cc52bfe93c33c7b0b7339b575fbb12e..82116e24beab6f376174365545b06f47fea014be 100644 (file)
--- a/README.md
+++ b/README.md
@@ -8,26 +8,29 @@
   Vulkan Vector Graphics
   <br>
 <p align="center">
+  <a href="https://github.com/jpbruyere/vkvg/actions/workflows/cmake.yml">
+     <img src="https://github.com/jpbruyere/vkvg/actions/workflows/cmake.yml/badge.svg">
+  </a>
   <a href="https://travis-ci.org/jpbruyere/vkvg">
-       <img src="https://img.shields.io/travis/jpbruyere/vkvg.svg?label=Linux&logo=travis&logoColor=white&message=build">
+    <img src="https://img.shields.io/travis/jpbruyere/vkvg.svg?label=Linux&logo=travis&logoColor=white&message=build">
   </a>
   <a href="https://ci.appveyor.com/project/jpbruyere/vkvg">
-       <img src="https://img.shields.io/appveyor/ci/jpbruyere/vkvg?label=Win64&logo=appveyor&logoColor=lightgrey">
+    <img src="https://img.shields.io/appveyor/ci/jpbruyere/vkvg?label=Win64&logo=appveyor&logoColor=lightgrey">
   </a>
   <img src="https://img.shields.io/github/license/jpbruyere/vkvg.svg?style=flat-square">
   <a href="https://www.paypal.me/GrandTetraSoftware">
-       <img src="https://img.shields.io/badge/Donate-PayPal-blue.svg?style=flat-square">
+    <img src="https://img.shields.io/badge/Donate-PayPal-blue.svg?style=flat-square">
   </a>
   <a href="https://gitter.im/CSharpRapidOpenWidgets?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge">
-       <img src="https://badges.gitter.im/CSharpRapidOpenWidgets.svg">
+    <img src="https://badges.gitter.im/CSharpRapidOpenWidgets.svg">
   </a>
 </p>
 <p align="center">
   <a href="https://aur.archlinux.org/packages/vkvg">
-       <img src="https://img.shields.io/aur/version/vkvg">
+    <img src="https://img.shields.io/aur/version/vkvg">
   </a>
   <a href="https://mpr.hunterwittenborn.com/packages/vkvg">
-       <img src="https://img.shields.io/badge/mpr-v0.3.0--beta-blue">
+    <img src="https://img.shields.io/badge/mpr-v0.3.0--beta-blue">
   </a>
 </p>
        
index 1a4386c91b84410e71de8c46c2eaf4efa1a71384..cc0cae0090aac01bd1d573fd48f0d355acfad887 100644 (file)
        //disable warning on iostream functions on windows
        #define _CRT_SECURE_NO_WARNINGS
        #include "windows.h"
-       #define isnanf _isnanf
+       #if defined(_WIN32)
+               #define isnanf isnan
+       #else
+               #ifndef isnanf
+                       #define isnanf _isnanf
+               #endif
+       #endif
        #define vkvg_inline __forceinline
        #define disable_warning (warn)
        #define reset_warning (warn)