CI - Ubuntu Focal #1474
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: CI - Ubuntu Focal | |
on: | |
# direct pushes to protected branches are not supported | |
pull_request: | |
# run every day, at 6am UTC | |
schedule: | |
- cron: '0 6 * * *' | |
# allow manually starting this workflow | |
workflow_dispatch: | |
jobs: | |
industrial_ci: | |
strategy: | |
matrix: | |
env: | |
- {ROS_DISTRO: noetic, ROS_REPO: testing} | |
- {ROS_DISTRO: noetic, ROS_REPO: main} | |
name: ROS Noetic (${{ matrix.env.ROS_REPO }}) | |
# industrial_ci uses Docker, so we don't need a specific Ubuntu version | |
runs-on: ubuntu-latest | |
env: | |
ADDITIONAL_DEBS: "python3-osrf-pycommon" | |
BUILDER: catkin_tools | |
CI_NAME: Ubuntu Focal | |
OS_NAME: ubuntu | |
OS_CODE_NAME: focal | |
CCACHE_DIR: "/home/runner/work/abb_robot_driver/abb_robot_driver/focal/.ccache" | |
UPSTREAM_WORKSPACE: 'pkgs.repos -abb_robot_driver' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare ccache timestamp | |
id: ccache_cache_timestamp | |
shell: cmake -P {0} | |
run: | | |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) | |
message("::set-output name=timestamp::${current_date}") | |
- name: ccache cache files | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.OS_CODE_NAME }}/.ccache | |
key: ${{ env.OS_CODE_NAME }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }} | |
restore-keys: | | |
${{ env.OS_CODE_NAME }}-ccache- | |
- uses: 'ros-industrial/industrial_ci@master' | |
env: ${{matrix.env}} |