Skip to content

Commit 35b5668

Browse files
committed
Add multi package build steps
1 parent 90cbe9b commit 35b5668

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

.github/workflows/cmake-multi-platform-single-pkg.yml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ jobs:
2222
# removed for now: windows-latest
2323
os: [ubuntu-latest]
2424
build_type: [Release, Debug]
25-
#c_compiler: [gcc, clang, cl]
26-
c_compiler: [gcc]
25+
c_compiler: [gcc, clang, cl]
2726
include:
2827
# Deactivate windows for now, fails to build/link
2928
#- os: windows-latest
@@ -52,6 +51,8 @@ jobs:
5251
shell: bash
5352
run: |
5453
echo "octomap-build-output-dir=${{ github.workspace }}/octomap/build" >> "$GITHUB_OUTPUT"
54+
echo "dynamicEDT3D-build-output-dir=${{ github.workspace }}/dynamicEDT3D/build" >> "$GITHUB_OUTPUT"
55+
echo "octovis-build-output-dir=${{ github.workspace }}/octovis/build" >> "$GITHUB_OUTPUT"
5556
5657
- name: octomap - Configure CMake
5758
working-directory: octomap
@@ -74,3 +75,40 @@ jobs:
7475
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
7576
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
7677
run: ctest --build-config ${{ matrix.build_type }}
78+
79+
- name: dynamicEDT3D - Configure CMake
80+
working-directory: dynamicEDT3D
81+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
82+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
83+
run: >
84+
cmake -B ${{ steps.strings.outputs.dynamicEDT3D-build-output-dir }}
85+
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
86+
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
87+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
88+
-S ${{ github.workspace }}/dynamicEDT3D
89+
90+
- name: dynamicEDT3D - Build
91+
working-directory: dynamicEDT3D
92+
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
93+
run: cmake --build ${{ steps.strings.outputs.dynamicEDT3D-build-output-dir }} --config ${{ matrix.build_type }}
94+
95+
# No tests available
96+
97+
- name: octovis - Configure CMake
98+
working-directory: octovis
99+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
100+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
101+
run: >
102+
cmake -B ${{ steps.strings.outputs.octovis-build-output-dir }}
103+
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
104+
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
105+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
106+
-S ${{ github.workspace }}/octovis
107+
108+
- name: octovis - Build
109+
working-directory: octovis
110+
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
111+
run: cmake --build ${{ steps.strings.outputs.octovis-build-output-dir }} --config ${{ matrix.build_type }}
112+
113+
# No tests available
114+

0 commit comments

Comments
 (0)