TarsCloud_TarsCpp/.github/workflows/ccpp.yml

26 lines
572 B
YAML
Raw Normal View History

2020-02-08 21:46:37 +08:00
name: C/C++ linux
2020-02-08 20:34:45 +08:00
on:
push:
branches:
2020-02-20 22:00:32 +08:00
- master
2020-02-08 20:34:45 +08:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2020-02-08 20:55:13 +08:00
- name: install
2020-03-12 17:48:08 +08:00
run: sudo apt-get install -y bison flex cmake psmisc libncurses5-dev zlib1g-dev; cmake --version
2020-02-08 20:34:45 +08:00
- name: git
run: git submodule update --init --recursive
- name: configure
run: mkdir build;cd build;cmake .. -DTARS_MYSQL=ON -DTARS_SSL=ON -DTARS_HTTP2=ON -DTARS_PROTOBUF=ON
2020-02-08 20:34:45 +08:00
- name: make
2020-03-12 17:48:08 +08:00
run: cd build; make -j4
2020-02-08 20:34:45 +08:00
- name: make run
run: cd build; make run-all