Skip to content

Commit 5e08a3a

Browse files
authored
Add Ubuntu CI (#13)
* Refs 14066: Add Ubuntu 20.04 workflow for CI Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> * Refs 14066: Apply suggestions Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com>
1 parent 46fb270 commit 5e08a3a

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: test
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
schedule:
10+
- cron: '0 0 * * *'
11+
12+
jobs:
13+
ubuntu-build-test:
14+
runs-on: ubuntu-20.04
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
with:
19+
path: src/fastdds_python
20+
21+
- name: Install apt dependencies
22+
run: |
23+
sudo apt update
24+
sudo apt install -y \
25+
python3 \
26+
python3-pip \
27+
libasio-dev \
28+
libtinyxml2-dev \
29+
swig \
30+
libpython3-dev
31+
32+
- name: Install python dependencies
33+
run: |
34+
sudo pip3 install -U \
35+
vcstool \
36+
colcon-common-extensions
37+
38+
- name: Fetch repositories
39+
run: |
40+
vcs import --skip-existing src < src/fastdds_python/fastdds_python.repos
41+
cd src/fastdds
42+
git checkout feature/good-datawriter-api
43+
cd ../../
44+
45+
- name: Build workspace
46+
run: colcon build --event-handlers=console_direct+
47+
48+
- name: Run tests
49+
run: |
50+
source install/setup.bash && \
51+
colcon test \
52+
--packages-select fastdds_python \
53+
--event-handlers=console_direct+ \
54+
--return-code-on-test-failure \
55+
--ctest-args --timeout 60
56+
57+
- name: Upload Logs
58+
uses: actions/upload-artifact@v1
59+
with:
60+
name: colcon-logs-ubuntu
61+
path: log/
62+
if: always()

0 commit comments

Comments
 (0)