Create main.yml

This commit is contained in:
greg
2021-11-07 11:02:53 -05:00
parent 3b5ecf0c2a
commit 8b1074d312
+20
View File
@@ -0,0 +1,20 @@
name: phmap CI
on:
push:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
configs: [Release, Debug]
steps:
- name: Checkout
uses: actions/checkout@v2.0.0
- name: Build and test
mkdir build && cd build && cmake -DPHMAP_BUILD_TESTS=ON -DPHMAP_BUILD_EXAMPLES=ON -DCMAKE_CXX_COMPILER=${COMPILER} -DCXXFLAGS="${CXX_FLAGS}" .. && cmake --build . && make test