mirror of
https://github.com/westonrobot/ugv_sdk
synced 2023-04-08 06:32:14 +08:00
25 lines
720 B
YAML
25 lines
720 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 -b v2.x 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
|