Skip to content

Commit d66678e

Browse files
author
Shota Aoki
authored
Merge pull request #2 from rt-net/add_workflow
Add workflow file
2 parents 59218c7 + f39d004 commit d66678e

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build_test.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: BuildAndTest
2+
3+
on: workflow_dispatch # 手動トリガー
4+
5+
jobs:
6+
lint:
7+
needs: [build]
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/setup-python@v2
11+
- run: pip install cpplint
12+
- uses: actions/checkout@v2
13+
- run: .tools/cpplint.bash
14+
15+
build:
16+
needs: lint
17+
strategy:
18+
fail-fast: false # 他のjobが失敗してもキャンセルしない
19+
matrix:
20+
os: [ubuntu-18.04, ubuntu-20.04]
21+
runs-on: ${{ matrix.os}}
22+
steps:
23+
- name: Install Dynamixel SDK
24+
run: |
25+
cd ..
26+
git clone https://github.com/ROBOTIS-GIT/DynamixelSDK.git
27+
cd DynamixelSDK/c++/build/linux64
28+
make
29+
sudo make install
30+
- uses: actions/checkout@v2
31+
- name: Build and insall library
32+
run: ./rt_manipulators_lib/build_install_library.bash
33+
- name: Build Samples
34+
run: |
35+
./samples/samples01/build_samples.bash

0 commit comments

Comments
 (0)