Skip to content

[pre-commit.ci] pre-commit autoupdate (#1016) #503

[pre-commit.ci] pre-commit autoupdate (#1016)

[pre-commit.ci] pre-commit autoupdate (#1016) #503

Workflow file for this run

name: full build test
on:
workflow_dispatch:
push:
branches:
- develop
jobs:
job:
name: FullBuild
runs-on: ubuntu-latest
timeout-minutes: 60
env:
DEBIAN_FRONTEND: noninteractive
strategy:
fail-fast: false
matrix:
rosdistro: [jazzy]
steps:
- name: Check disk space before cleanup
run: |
echo "=== Disk space before cleanup ==="
df -h
echo "=== Largest directories ==="
du -h / 2>/dev/null | sort -rh | head -20 || true
- name: free disk
uses: jlumbroso/free-disk-space@main
with:
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
tool-cache: false
- name: Check disk space after cleanup
run: df -h
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup ROS 2 Jazzy
uses: ros-tooling/[email protected]
with:
required-ros-distributions: jazzy
- name: Install PowerShell
run: |
sudo apt-get install -y wget apt-transport-https
wget -q "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb"
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y powershell
shell: bash
- name: Initialize rosdep
run: sudo rosdep init || true
shell: bash
- name: Clone dependency packages
run: |
mkdir -p dependency_ws
vcs import dependency_ws < dependency_${{ matrix.rosdistro }}.repos
shell: bash
- name: Run rosdep install
run: |
rosdep update
rosdep install -yqq --from-paths . dependency_ws --ignore-src --rosdistro ${{ matrix.rosdistro }}
shell: bash
- name: Build dependencies
run: |
source /opt/ros/${{ matrix.rosdistro }}/setup.bash
# PYTHONPATHにROS 2のsite-packagesを追加
export PYTHONPATH=/opt/ros/${{ matrix.rosdistro }}/lib/python3.12/site-packages:$PYTHONPATH
colcon build \
--base-paths dependency_ws \
--merge-install \
--parallel-workers 1 \
--packages-skip proto2ros_tests speak_ros_voicevox_plugin \
--cmake-args -DCMAKE_BUILD_TYPE=Release
shell: bash
- name: Build crane packages
run: |
source /opt/ros/${{ matrix.rosdistro }}/setup.bash
source install/setup.bash
# PYTHONPATHにROS 2のsite-packagesを追加
export PYTHONPATH=/opt/ros/${{ matrix.rosdistro }}/lib/python3.12/site-packages:$PYTHONPATH
colcon build --symlink-install \
--base-paths . \
--merge-install \
--parallel-workers 2 \
--packages-skip proto2ros proto2ros_tests speak_ros speak_ros_interfaces speak_ros_voicevox_plugin \
--cmake-args -DCMAKE_BUILD_TYPE=Release
shell: bash
- name: Test
run: |
source /opt/ros/${{ matrix.rosdistro }}/setup.bash
source install/setup.bash
colcon test --base-paths . --merge-install \
--packages-skip proto2ros proto2ros_tests speak_ros speak_ros_interfaces speak_ros_voicevox_plugin
colcon test-result --verbose
shell: bash