tr #38
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: ros-ci | |
on: | |
pull_request: | |
push: | |
permissions: | |
contents: write | |
jobs: | |
build_testing: | |
runs-on: self-hosted | |
# container: | |
# image: ubuntu:22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
ros_distro: [humble] | |
deb_distro: [jammy] | |
arch: [ | |
amd64, | |
arm64, | |
# armhf | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: self-checkout | |
run: | | |
mkdir -p ./srcO/ | |
mv ./mirte_* ./srcO/ | |
rm -rf ./src | |
rm /var/lib/dpkg/info/libc-bin.* || true | |
sudo apt clean | |
sudo apt update | |
- uses: arendjan/ros-deb-builder-action@upmain # allows for failing builds | |
with: | |
ROS_DISTRO: ${{ matrix.ros_distro }} | |
DEB_DISTRO: ${{ matrix.deb_distro }} | |
DEB_ARCH: ${{ matrix.arch }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
REPOS_FILE: ./sources.repos | |
SKIP_CHECKOUT: true | |
PACKAGES_BRANCH: ros_mirte_${{ matrix.ros_distro }}_${{ matrix.deb_distro }}_${{ matrix.arch }} | |
SKIP_PACKAGES: "astra_camera astra_camera_msgs rplidar_ros web_video_server" | |
# SBUILD_CONF: "$enable_network = 1;" | |
# Skip pushing to repo when not on main branch | |
SKIP_PUSH: ${{ github.ref != 'refs/heads/main' }} | |
UPLOAD_ARTIFACTS: ${{ github.ref != 'refs/heads/main' }} | |
CONTINUE_ON_ERROR: ${{ github.ref != 'refs/heads/main' }} # allows for failing builds |