Nightly #256
This file contains hidden or 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: Nightly | |
| on: | |
| pull_request: | |
| types: [labeled] | |
| schedule: | |
| - cron: '0 5 * * *' | |
| jobs: | |
| industrial_ci: | |
| if: contains(github.event.pull_request.labels.*.name, 'check-tesseract-ros') || github.event.schedule == true | |
| name: ${{ matrix.env.CI_NAME }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| env: | |
| - {CI_NAME: Bionic-Build-Nightly, | |
| OS_NAME: ubuntu, | |
| OS_CODE_NAME: bionic, | |
| ROS_DISTRO: melodic, | |
| ROS_REPO: main, | |
| UPSTREAM_WORKSPACE: 'dependencies.rosinstall', | |
| ROSDEP_SKIP_KEYS: "bullet bullet-extras ros_industrial_cmake_boilerplate fcl iwyu", | |
| DOCKER_IMAGE: "rosindustrial/tesseract:melodic", | |
| CCACHE_DIR: "/home/runner/work/tesseract_python/tesseract_python/Bionic-Build-Nightly/.ccache", | |
| PARALLEL_TESTS: false, | |
| UPSTREAM_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Release", | |
| TARGET_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Release", | |
| DOWNSTREAM_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Release"} | |
| - {CI_NAME: Focal-Build-Nightly, | |
| OS_NAME: ubuntu, | |
| OS_CODE_NAME: focal, | |
| ROS_DISTRO: noetic, | |
| ROS_REPO: main, | |
| UPSTREAM_WORKSPACE: 'dependencies.rosinstall', | |
| ROSDEP_SKIP_KEYS: "bullet bullet-extras ros_industrial_cmake_boilerplat fcl iwyu benchmark", | |
| DOCKER_IMAGE: "rosindustrial/tesseract:noetic", | |
| CCACHE_DIR: "/home/runner/work/tesseract_python/tesseract_python/Focal-Build-Nightly/.ccache", | |
| UPSTREAM_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Release", | |
| TARGET_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Release", | |
| DOWNSTREAM_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Release"} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Free Disk Space | |
| run: | | |
| sudo swapoff -a | |
| sudo rm -f /swapfile | |
| sudo apt clean | |
| docker rmi $(docker image ls -aq) | |
| df -h | |
| - 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@v4.3.0 | |
| with: | |
| path: ${{ matrix.env.CI_NAME }}/.ccache | |
| key: ${{ matrix.env.CI_NAME }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }} | |
| restore-keys: | | |
| ${{ matrix.env.CI_NAME }}-ccache- | |
| - uses: 'ros-industrial/industrial_ci@master' | |
| env: ${{matrix.env}} |