Skip to content

Commit ca26f56

Browse files
committed
Added ubuntu-24.04 runner to github actions.
1 parent 9e331c6 commit ca26f56

File tree

1 file changed

+132
-0
lines changed

1 file changed

+132
-0
lines changed

.github/workflows/actions_build.yml

+132
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,70 @@ jobs:
197197
run: cmake --build . --config ${{matrix.type}} --target install
198198
env:
199199
VERBOSE: 1
200+
201+
build_gcc_ubuntu_24_04:
202+
runs-on: ubuntu-24.04
203+
strategy:
204+
fail-fast: false
205+
matrix:
206+
type: [Debug, Release, MinSizeRel]
207+
cc_ver: [13, 14]
208+
cpp: [11, 14, 17, 20, 23]
209+
qt_ver: [5, 6]
210+
exclude:
211+
- cc_ver: 13
212+
cpp: 23
213+
214+
steps:
215+
- uses: actions/checkout@v4
216+
217+
- name: Prepare Install
218+
run: sudo apt-get update --fix-missing
219+
220+
- name: Install Packages
221+
run: |
222+
sudo apt install libqt${{matrix.qt_ver}}gui${{matrix.qt_ver}} qtbase5-dev qt6-base-dev libboost-all-dev libxml2-dev gcc-${{matrix.cc_ver}} g++-${{matrix.cc_ver}} \
223+
python3 libpython3-dev swig default-jdk default-jre emscripten
224+
225+
- name: Create Build Environment
226+
run: cmake -E make_directory ${{runner.workspace}}/build
227+
228+
- name: Prepare externals
229+
shell: bash
230+
run: $GITHUB_WORKSPACE/script/prepare_externals.sh
231+
env:
232+
BUILD_DIR: ${{runner.workspace}}/build
233+
CC: gcc-${{matrix.cc_ver}}
234+
CXX: g++-${{matrix.cc_ver}}
235+
EXTERNALS_DIR: ${{runner.workspace}}/externals
236+
COMMON_INSTALL_DIR: ${{runner.workspace}}/build/install
237+
COMMON_BUILD_TYPE: ${{matrix.type}}
238+
COMMON_CXX_STANDARD: ${{matrix.cpp}}
239+
COMMS_TAG: ${{env.COMMS_TAG}}
240+
COMMSDSL_TAG: ${{env.COMMSDSL_TAG}}
241+
CC_TOOLS_QT_TAG: ${{env.CC_TOOLS_QT_TAG}}
242+
CC_TOOLS_QT_MAJOR_QT_VERSION: ${{matrix.qt_ver}}
243+
244+
- name: Configure CMake
245+
shell: bash
246+
working-directory: ${{runner.workspace}}/build
247+
run: |
248+
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{matrix.type}} -DCMAKE_INSTALL_PREFIX=install \
249+
-DCMAKE_PREFIX_PATH=${{runner.workspace}}/build/install -DCMAKE_CXX_STANDARD=${{matrix.cpp}} \
250+
-DDEMO1_TOOLS_QT_VER=${{matrix.qt_ver}} \
251+
-DDEMO1_GEN_PROTOCOL=ON -DDEMO1_GEN_TEST=ON -DDEMO1_GEN_TOOLS=ON -DDEMO1_BUILD_TOOLS=${{env.BUILD_TOOLS}} \
252+
-DDEMO1_GEN_SWIG=ON -DDEMO1_GEN_EMSCRIPTEN=ON
253+
env:
254+
CC: gcc-${{matrix.cc_ver}}
255+
CXX: g++-${{matrix.cc_ver}}
256+
BUILD_TOOLS: "${{ matrix.cpp >= 17 && 'ON' || 'OFF' }}"
257+
258+
- name: Build Target
259+
working-directory: ${{runner.workspace}}/build
260+
shell: bash
261+
run: cmake --build . --config ${{matrix.type}} --target install
262+
env:
263+
VERBOSE: 1
200264

201265
build_clang_old_ubuntu_20_04:
202266
runs-on: ubuntu-20.04
@@ -389,6 +453,74 @@ jobs:
389453
env:
390454
VERBOSE: 1
391455

456+
build_clang_ubuntu_24_04:
457+
runs-on: ubuntu-24.04
458+
strategy:
459+
fail-fast: false
460+
matrix:
461+
type: [Debug, Release, MinSizeRel]
462+
cc_ver: [16, 17, 18]
463+
cpp: [11, 14, 17, 20, 23]
464+
qt_ver: [5, 6]
465+
exclude:
466+
- cc_ver: 16
467+
cpp: 23
468+
- cc_ver: 17
469+
cpp: 23
470+
471+
steps:
472+
- uses: actions/checkout@v4
473+
474+
- name: Prepare Install
475+
run: sudo apt-get update --fix-missing
476+
477+
- name: Install Packages
478+
run: |
479+
sudo apt install libqt${{matrix.qt_ver}}gui${{matrix.qt_ver}} qtbase5-dev qt6-base-dev libboost-all-dev libxml2-dev clang-${{matrix.cc_ver}} \
480+
python3 libpython3-dev swig default-jdk default-jre emscripten
481+
482+
- name: Create Build Environment
483+
run: cmake -E make_directory ${{runner.workspace}}/build
484+
485+
- name: Prepare externals
486+
shell: bash
487+
run: $GITHUB_WORKSPACE/script/prepare_externals.sh
488+
env:
489+
BUILD_DIR: ${{runner.workspace}}/build
490+
CC: clang-${{matrix.cc_ver}}
491+
CXX: clang++-${{matrix.cc_ver}}
492+
EXTERNALS_DIR: ${{runner.workspace}}/externals
493+
COMMON_INSTALL_DIR: ${{runner.workspace}}/build/install
494+
COMMON_BUILD_TYPE: ${{matrix.type}}
495+
COMMON_CXX_STANDARD: ${{matrix.cpp}}
496+
COMMS_TAG: ${{env.COMMS_TAG}}
497+
COMMSDSL_TAG: ${{env.COMMSDSL_TAG}}
498+
CC_TOOLS_QT_TAG: ${{env.CC_TOOLS_QT_TAG}}
499+
CC_TOOLS_QT_MAJOR_QT_VERSION: ${{matrix.qt_ver}}
500+
CC_TOOLS_QT_SKIP: "${{ (matrix.cpp < 17 || (matrix.cpp == 20 && matrix.cc_ver < 15)) && '1' || '0' }}"
501+
502+
- name: Configure CMake
503+
shell: bash
504+
working-directory: ${{runner.workspace}}/build
505+
run: |
506+
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{matrix.type}} -DCMAKE_INSTALL_PREFIX=install \
507+
-DCMAKE_PREFIX_PATH=${{runner.workspace}}/build/install -DCMAKE_CXX_STANDARD=${{matrix.cpp}} \
508+
-DDEMO1_TOOLS_QT_VER=${{matrix.qt_ver}} \
509+
-DDEMO1_GEN_PROTOCOL=ON -DDEMO1_GEN_TEST=ON -DDEMO1_GEN_TOOLS=ON -DDEMO1_BUILD_TOOLS=${{env.BUILD_TOOLS}} \
510+
-DDEMO1_GEN_SWIG=ON -DDEMO1_GEN_EMSCRIPTEN=ON
511+
env:
512+
CC: clang-${{matrix.cc_ver}}
513+
CXX: clang++-${{matrix.cc_ver}}
514+
BUILD_TOOLS: "${{ (matrix.cpp < 17 || (matrix.cpp == 20 && matrix.cc_ver < 15)) && 'OFF' || 'ON' }}"
515+
516+
- name: Build Target
517+
working-directory: ${{runner.workspace}}/build
518+
shell: bash
519+
run: cmake --build . --config ${{matrix.type}} --target install
520+
env:
521+
VERBOSE: 1
522+
523+
392524
build_msvc_2019:
393525
runs-on: windows-2019
394526
strategy:

0 commit comments

Comments
 (0)