Skip to content

Fixes formatted float string size. #461

Fixes formatted float string size.

Fixes formatted float string size. #461

Workflow file for this run

name: Linux
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-24.04
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
build_type: [Debug]
option: [default, ref, shared, no_sample, no_data, no_fbx, no_gltf, no_tests]
cxx_standard: ['17']
include:
- build_type: Release
option: default
- build_type: Debug
option: gcc12
compiler_c: gcc-12
compiler_cxx: g++-12
- build_type: Debug
option: gcc13
compiler_c: gcc-13
compiler_cxx: g++-13
- build_type: Debug
option: gcc14
compiler_c: gcc-14
compiler_cxx: g++-14
- build_type: Release
option: gcc14
compiler_c: gcc-14
compiler_cxx: g++-14
- build_type: Debug
option: clang16
compiler_c: clang-16
compiler_cxx: clang++-16
- build_type: Debug
option: clang17
compiler_c: clang-17
compiler_cxx: clang++-17
- build_type: Debug
option: clang18
compiler_c: clang-18
compiler_cxx: clang++-18
- build_type: Release
option: clang18
compiler_c: clang-18
compiler_cxx: clang++-18
steps:
- uses: actions/checkout@v4
- name: Install OpenGL dependency
run: |
sudo apt-get update
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
- name: Install c compiler
if: matrix.compiler_c
run: |
sudo apt-get install ${{matrix.compiler_c}}
- name: Install cxx compiler
if: matrix.compiler_cxx
run: |
sudo apt-get install ${{matrix.compiler_cxx}}
- name: Install fbx sdk
if: matrix.option != 'no_fbx'
run: |
mkdir fbx
cd fbx
sudo wget --user-agent='Mozilla/5.0' 'https://damassets.autodesk.net/content/dam/autodesk/www/adn/fbx/2020-3-4/fbx202034_fbxsdk_linux.tar.gz' -O 'fbx.tar.gz'
sudo tar -xf 'fbx.tar.gz'
(yes yes | sudo ./*_fbxsdk_linux /usr/local) || true
sudo chmod -R 755 /usr/local/lib
sudo chmod -R 755 /usr/local/include
cd ..
- name: Configure
# Configure CMake in a 'build' subdirectory.
run: |
cmake --version
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DBUILD_SHARED_LIBS=${{matrix.option == 'shared'}} -DCMAKE_CXX_STANDARD=${{matrix.cxx_standard}} -Dozz_build_tests=${{matrix.option != 'no_tests'}} -Dozz_build_simd_ref=${{matrix.option == 'ref'}} -Dozz_build_samples=${{matrix.option != 'no_sample'}} -Dozz_build_data=${{matrix.option != 'no_data'}} -Dozz_build_gltf=${{matrix.option != 'no_gltf'}}
env:
# Sets compiler if available
CC: ${{matrix.compiler_c}}
CXX: ${{matrix.compiler_cxx}}
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --use-stderr
- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
run: ctest -C ${{matrix.build_type}} --output-on-failure -j2