[Sprint 22 / PD-401] [Enhancement] Update Github Workflows #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ros2-ws-action | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [master] | |
jobs: | |
build-and-test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
path: shisen_cpp | |
- name: Checkout Shisen Interface | |
uses: actions/[email protected] | |
with: | |
repository: ichiro-its/shisen_interfaces | |
path: shisen_interfaces | |
- name: Checkout Kansei Interfaces | |
uses: actions/[email protected] | |
with: | |
repository: ichiro-its/kansei_interfaces | |
path: kansei_interfaces | |
- name: install opencv contrib | |
run: | | |
sudo apt install libopencv-contrib-dev -y | |
- name: Checkout Keisan | |
uses: actions/[email protected] | |
with: | |
repository: ichiro-its/keisan | |
path: keisan | |
- name: Checkout Jitsuyo | |
uses: actions/[email protected] | |
with: | |
repository: ichiro-its/jitsuyo | |
path: jitsuyo | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Setup abseil for grpc | |
run: | | |
git clone https://github.com/abseil/abseil-cpp.git | |
cmake -S abseil-cpp -B abseil-cpp/build | |
cmake --build abseil-cpp/build | |
sudo cmake --install abseil-cpp/build | |
- name: Setup grpc | |
run: | | |
git clone --recurse-submodules -b v1.61.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc | |
cmake -S grpc -B grpc/build | |
cmake --build grpc/build | |
sudo cmake --install grpc/build | |
rm -rf grpc | |
- name: Setup workspace | |
uses: ichiro-its/ros2-ws-action/[email protected] | |
- name: Build workspace | |
uses: ichiro-its/ros2-ws-action/[email protected] | |
- name: Test workspace | |
uses: ichiro-its/ros2-ws-action/[email protected] |