-
Notifications
You must be signed in to change notification settings - Fork 13
71 lines (64 loc) · 2.59 KB
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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@v1
- 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/[email protected]
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}}