mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2024-12-22 22:16:38 +08:00
26 lines
572 B
YAML
26 lines
572 B
YAML
name: C/C++ linux
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install
|
|
run: sudo apt-get install -y bison flex cmake psmisc libncurses5-dev zlib1g-dev; cmake --version
|
|
- 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
|
|
- name: make
|
|
run: cd build; make -j4
|
|
- name: make run
|
|
run: cd build; make run-all
|
|
|