Files
ugv_sdk/.github/workflows/standalone-ci.yml
2021-04-08 11:49:51 +08:00

25 lines
715 B
YAML

name: Cpp
on:
push:
branches: [ master, v2.x ]
pull_request:
branches: [ master, v2.x ]
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
# - name: Install dependencies
# run: sudo apt-get install -y build-essential cmake libasio-dev
- name: Build and install dependent package
run: git clone https://github.com/westonrobot/async_port.git && cd async_port && \
mkdir build && cd build && cmake .. && make && sudo make install
- name: Update git submodule
run: git submodule update --init --recursive
- name: Build and pack
run: mkdir build && cd build && cmake -DBUILD_TESTS=ON .. && cmake --build . && cpack