Skip to content

Commit f2ad2af

Browse files
committed
Add build job using clang
1 parent dd6edbe commit f2ad2af

2 files changed

Lines changed: 41 additions & 5 deletions

File tree

.github/workflows/alpine-build.yml

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,53 @@ on:
1010

1111
jobs:
1212
alpine-build:
13+
name: Alpine (${{ matrix.compiler }})
1314
runs-on: ubuntu-latest
1415
container: alpine:latest
15-
timeout-minutes: 30
16+
timeout-minutes: 60
17+
strategy:
18+
matrix:
19+
compiler: [gcc, clang]
20+
include:
21+
- compiler: gcc
22+
cc: gcc
23+
cxx: g++
24+
packages: build-base
25+
ROBOT_MODEL: 'ur5e'
26+
URSIM_VERSION: '5.24.0'
27+
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
28+
- compiler: clang
29+
cc: clang
30+
cxx: clang++
31+
ROBOT_MODEL: 'ur5e'
32+
packages: build-base clang
33+
URSIM_VERSION: '5.24.0'
34+
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
1635

1736
steps:
1837
- name: install dependencies
19-
run: apk add --no-cache build-base cmake linux-headers git
38+
run: apk add --no-cache ${{ matrix.packages }} cmake linux-headers git python3
39+
- name: start ursim
40+
run: |
41+
scripts/start_ursim.sh -m $ROBOT_MODEL -v $URSIM_VERSION -p $PROGRAM_FOLDER -d -f DISABLED
42+
env:
43+
DOCKER_RUN_OPTS: --network ursim_net
44+
ROBOT_MODEL: ${{matrix.env.ROBOT_MODEL}}
45+
URSIM_VERSION: ${{matrix.env.URSIM_VERSION}}
46+
PROGRAM_FOLDER: ${{matrix.env.PROGRAM_FOLDER}}
47+
- name: install-pips
48+
run: pip install pandas lxml
2049
- uses: actions/checkout@v6
2150
- name: configure
22-
run: mkdir build && cd build && cmake .. -DBUILDING_TESTS=1 -DCMAKE_COMPILE_WARNING_AS_ERROR=ON
51+
run: >
52+
mkdir build && cd build &&
53+
cmake ..
54+
-DBUILDING_TESTS=1
55+
-DINTEGRATION_TESTS=1
56+
-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF
57+
-DCMAKE_C_COMPILER=${{ matrix.cc }}
58+
-DCMAKE_CXX_COMPILER=${{ matrix.cxx }}
2359
- name: build
24-
run: cmake --build build --config Debug
60+
run: cmake --build build --config Debug -- -j$(nproc)
2561
- name: test
2662
run: cd build && ctest --output-on-failure

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ include(FetchContent)
88
FetchContent_Declare(
99
googletest
1010
GIT_REPOSITORY https://github.com/google/googletest.git
11-
GIT_TAG v1.15.2
11+
GIT_TAG v1.17.0
1212
)
1313
# For Windows: Prevent overriding the parent project's compiler/linker settings
1414
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)

0 commit comments

Comments
 (0)