2020-02-08 21:46:37 +08:00
|
|
|
name: C/C++ mac
|
2020-02-08 21:07:44 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-02-20 22:00:32 +08:00
|
|
|
- master
|
2020-02-08 21:07:44 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: install
|
2020-02-12 16:50:16 +08:00
|
|
|
run: brew install bison flex cmake; cmake --version
|
2020-02-08 21:07:44 +08:00
|
|
|
- name: git
|
|
|
|
run: git submodule update --init --recursive
|
|
|
|
- name: configure
|
2020-02-26 19:16:30 +08:00
|
|
|
run: mkdir build;cd build;cmake .. -DTARS_MYSQL=ON -DTARS_SSL=ON -DTARS_HTTP2=ON -DTARS_PROTOBUF=ON
|
2020-02-08 21:07:44 +08:00
|
|
|
- name: make
|
2020-03-12 17:48:08 +08:00
|
|
|
run: cd build; make -j4
|
2020-02-08 21:07:44 +08:00
|
|
|
- name: make run
|
|
|
|
run: cd build; make run-all
|
|
|
|
|