-
Notifications
You must be signed in to change notification settings - Fork 59
55 lines (44 loc) · 1.35 KB
/
ci.yaml
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
name: Continuous Integration
on:
workflow_dispatch:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
jobs:
ubuntu-build-test:
runs-on: ubuntu-latest
strategy:
matrix:
java_version: ['openjdk-11-jdk', 'openjdk-17-jdk', 'openjdk-18-jdk', 'openjdk-19-jdk']
steps:
- uses: actions/checkout@v3
with:
path: src/fastddsgen
- uses: ./src/fastddsgen/.github/actions/install-apt-packages
with:
java-version: ${{ matrix.java_version }}
- uses: ./src/fastddsgen/.github/actions/install-python-packages
- uses: ./src/fastddsgen/.github/actions/fetch-fastddsgen-repos
- name: Get minimum supported version of CMake
uses: lukka/get-cmake@latest
with:
cmakeVersion: 3.16.3
- name: Use cmake
run: cmake --version
- name: Setup ccache
uses: Chocobo1/setup-ccache-action@v1
- name: Build workspace
run: |
colcon build --event-handlers=console_direct+ --cmake-args -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
- name: Build fastddsgen
run: |
cd src/fastddsgen
./gradlew assemble
- name: Test fastddsgen
run: |
source install/local_setup.bash
cd src/fastddsgen
./gradlew test