add separate yml action files for windows/linux/mac

This commit is contained in:
greg
2021-11-08 18:51:30 -05:00
parent 376e5f358e
commit 8ee437653d
4 changed files with 52 additions and 3 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
name: Linux, MacOS
name: Linux
on:
push:
@@ -10,7 +10,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]
compiler: [g++, clang++]
flags: [-std=c++11, -std=c++17]
optimize: [-O2]
+25
View File
@@ -0,0 +1,25 @@
name: MacOS
on:
push:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
compiler: [g++, clang++]
flags: [-std=c++11, -std=c++17]
optimize: [-O2]
steps:
- name: Checkout
uses: actions/checkout@v2.0.0
- name: Build and test
env:
CXX: ${{ matrix.compiler }}
CXXFLAGS: ${{ matrix.flags }} ${{ matrix.optimize }}
run: |
mkdir build && cd build && cmake -DPHMAP_BUILD_TESTS=ON -DPHMAP_BUILD_EXAMPLES=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON .. && cmake --build . && make test
+24
View File
@@ -0,0 +1,24 @@
name: Windows
on:
push:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
flags: [/std:c++11, /std:c++17]
optimize: [/O2]
steps:
- name: Checkout
uses: actions/checkout@v2.0.0
- name: Build and test
env:
CXX: ${{ matrix.compiler }}
CXXFLAGS: ${{ matrix.flags }} ${{ matrix.optimize }}
run: |
mkdir build && cd build && cmake -DPHMAP_BUILD_TESTS=ON -DPHMAP_BUILD_EXAMPLES=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON .. && cmake --build . && make test