Skip to content

maintenance update #845

maintenance update

maintenance update #845

Workflow file for this run

name: Linux / MacOS - c++
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- test: unit_tests
os: ubuntu-22.04
build_type: RelWithDebInfo
access: row_major
ensure: default_panic
log: default_fmt
- os: ubuntu-24.04
build_type: RelWithDebInfo
access: col_major
test: unit_tests
ensure: default_panic
log: default_fmt
- os: ubuntu-24.04
build_type: RelWithDebInfo
access: col_major
test: unit_tests
ensure: default_panic
log: default_fmt
- os: ubuntu-24.04
build_type: RelWithDebInfo
access: col_major
test: unit_tests
ensure: default_panic
log: basig_logging
- test: unit_tests
os: macos-13
build_type: RelWithDebInfo
access: col_major
ensure: default_panic
log: default_fmt
- test: unit_tests
os: macos-14
build_type: RelWithDebInfo
access: col_major
ensure: default_panic
log: default_fmt
- test: install_test
os: ubuntu-22.04
build_type: RelWithDebInfo
access: col_major
ensure: default_panic
log: default_fmt
- test: install_test
os: ubuntu-22.04
build_type: RelWithDebInfo
access: col_major
ensure: custom_handler
log: default_fmt
- test: install_test
os: macos-14
build_type: RelWithDebInfo
access: col_major
ensure: default_panic
log: default_fmt
- test: install_test
os: macos-14
build_type: RelWithDebInfo
access: col_major
ensure: custom_handler
log: default_fmt
- test: install_test
os: ubuntu-22.04
build_type: RelWithDebInfo
access: col_major
ensure: default_panic
log: basig_logging
- test: install_test
os: ubuntu-22.04
build_type: RelWithDebInfo
access: col_major
ensure: custom_handler
log: basig_logging
- test: install_test
os: macos-14
build_type: RelWithDebInfo
access: col_major
ensure: default_panic
log: basig_logging
- test: install_test
os: macos-14
build_type: RelWithDebInfo
access: col_major
ensure: custom_handler
log: basig_logging
fail-fast: false
steps:
- name: Set default value for ROW_MAJOR_DEFAULT to OFF
run: echo "ROW_MAJOR_DEFAULT=OFF" >> $GITHUB_ENV
- name: Update ROW_MAJOR_DEFAULT=ON if condition is met
if: matrix.access == 'row_major'
run: echo "ROW_MAJOR_DEFAULT=ON" >> $GITHUB_ENV
- uses: actions/checkout@v2
- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: ${{ runner.os }}-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.access }}-${{ matrix.test }}
restore-keys: |
${{ runner.os }}-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.access }}-${{ matrix.test }}
- name: Install dependencies (Linux incl. Ceres)
run: ./scripts/install_ubuntu_deps_incl_ceres.sh
if: matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-24.04'
- name: Install dependencies (Mac OS incl. Ceres)
run: ./scripts/install_osx_deps_incl_ceres.sh
if: matrix.os == 'macos-14' || matrix.os == 'macos-13'
- name: Run tests
run: ./scripts/run_cpp_tests.sh
if: matrix.test == 'unit_tests'
- name: Install test
run: |
echo "Install test"
mkdir build_dir
cd build_dir
cmake -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
# Ubuntu builds via Github actions run on 2-core virtual machines
make -j2
sudo make install
cd ..
cd examples
mkdir build_dir
cd build_dir
cmake ..
make
ls -la
if: matrix.test == 'install_test'