diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 5ce602818..000000000 --- a/.appveyor.yml +++ /dev/null @@ -1,92 +0,0 @@ -shallow_clone: true - -platform: - - x86 - - x64 - -configuration: - - Debug - - Release - -image: - - Visual Studio 2013 - - Visual Studio 2015 - - Visual Studio 2017 - - Visual Studio 2019 - -environment: - matrix: - - GLM_ARGUMENTS: -DGLM_TEST_FORCE_PURE=ON - - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_SSE2=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON - - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON - - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_14=ON - - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_17=ON - -matrix: - exclude: - - image: Visual Studio 2013 - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON - - image: Visual Studio 2013 - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_14=ON - - image: Visual Studio 2013 - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_17=ON - - image: Visual Studio 2013 - configuration: Debug - - image: Visual Studio 2015 - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_SSE2=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON - - image: Visual Studio 2015 - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_14=ON - - image: Visual Studio 2015 - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_17=ON - - image: Visual Studio 2015 - platform: x86 - - image: Visual Studio 2015 - configuration: Debug - - image: Visual Studio 2017 - platform: x86 - - image: Visual Studio 2017 - configuration: Debug - - image: Visual Studio 2019 - platform: x64 - -branches: - only: - - master - -before_build: - - ps: | - mkdir build - cd build - - if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2013") { - $env:generator="Visual Studio 12 2013" - } - if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2015") { - $env:generator="Visual Studio 14 2015" - } - if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2017") { - $env:generator="Visual Studio 15 2017" - } - if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2019") { - $env:generator="Visual Studio 16 2019" - } - if ($env:PLATFORM -eq "x64") { - $env:generator="$env:generator Win64" - } - echo generator="$env:generator" - cmake .. -G "$env:generator" -DCMAKE_INSTALL_PREFIX="$env:APPVEYOR_BUILD_FOLDER/install" -DGLM_QUIET=ON -DGLM_TEST_ENABLE=ON "$env:GLM_ARGUMENTS" - -build_script: - - cmake --build . --parallel --config %CONFIGURATION% -- /m /v:minimal - - cmake --build . --target install --parallel --config %CONFIGURATION% -- /m /v:minimal - -test_script: - - ctest --parallel 4 --verbose -C %CONFIGURATION% - - cd .. - - ps: | - mkdir build_test_cmake - cd build_test_cmake - cmake ..\test\cmake\ -G "$env:generator" -DCMAKE_PREFIX_PATH="$env:APPVEYOR_BUILD_FOLDER/install" - - cmake --build . --parallel --config %CONFIGURATION% -- /m /v:minimal - -deploy: off diff --git a/.github/workflows/actions/build-and-test/action.yml b/.github/workflows/actions/build-and-test/action.yml new file mode 100644 index 000000000..88b7909bf --- /dev/null +++ b/.github/workflows/actions/build-and-test/action.yml @@ -0,0 +1,49 @@ +name: Build and test + +inputs: + build_dir: + description: "The build dir to use" + required: true + std: + description: "The C++ standard to use" + required: true + build_type: + description: "The build type to use" + default: Debug + sse3: + description: "Whether to enable sse3" + default: OFF + avx: + description: "Whether to enable avx" + default: OFF + pure: + description: "Whether to enable pure" + default: OFF + lang_extensions: + description: "Whether to enable lang extensions" + default: OFF + +runs: + using: "composite" + steps: + - name: Build GLM + shell: bash + run: | + mkdir -p ${{ inputs.build_dir }} + + cmake -DCMAKE_INSTALL_PREFIX=$RUNNER_TEMP/install \ + -DCMAKE_BUILD_TYPE=${{ inputs.build_type }} \ + -DGLM_TEST_ENABLE=ON \ + -DGLM_TEST_ENABLE_CXX_${{ inputs.std}}=ON \ + -DGLM_TEST_ENABLE_SIMD_SSE3=${{ inputs.sse3 }} \ + -DGLM_TEST_ENABLE_SIMD_AVX=${{ inputs.avx }} \ + -DGLM_TEST_FORCE_PURE=${{ inputs.pure }} \ + -DGLM_TEST_ENABLE_LANG_EXTENSIONS=${{ inputs.lang_extensions }} \ + -S . \ + -B ${{ inputs.build_dir }} + cmake --build ${{ inputs.build_dir }} --parallel 2 + + - name: Run tests + shell: bash + run: + ctest --test-dir ${{ inputs.build_dir }} --output-on-failure --parallel 4 diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml new file mode 100644 index 000000000..bcc46e274 --- /dev/null +++ b/.github/workflows/github-actions-demo.yml @@ -0,0 +1,39 @@ +name: GLM Unit Tests + +run-name: ${{ github.actor }} is running GLM unit tests +on: [push] + +jobs: + Explore-GitHub-Actions: + name: "${{ matrix.os}} ${{ matrix.cxx }} C++:${{ matrix.std }}" + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + std: [98, 11, 14, 17, 20] + os: [ubuntu-latest, macos-latest, windows-latest] + config: [Debug, Release] + +# env: +# CXX: ${{ matrix.cxx }} + + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." + + - name: Tool versions + run: | +# ${CXX} --version + cmake --version + + - run: cmake --build . --parallel --config ${{matrix.config}} + - run: ctest --parallel 4 --verbose -C ${{matrix.config}} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1660ec0c5..000000000 --- a/.travis.yml +++ /dev/null @@ -1,388 +0,0 @@ -language: cpp - -branches: - only: - - master - - stable - -jobs: - include: - - name: "Xcode 7.3 C++98 pure release" - os: osx - osx_image: xcode7.3 - env: - - MATRIX_EVAL="" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_FORCE_PURE=ON" - - - name: "Xcode 7.3 C++98 sse2 release" - os: osx - osx_image: xcode7.3 - env: - - MATRIX_EVAL="" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE2=ON" - - - name: "Xcode 7.3 C++98 ms release" - os: osx - osx_image: xcode7.3 - env: - - MATRIX_EVAL="" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON" - - - name: "XCode 7.3 C++11 pure release" - os: osx - osx_image: xcode7.3 - env: - - MATRIX_EVAL="" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_FORCE_PURE=ON" - - - name: "XCode 7.3 C++11 sse2 release" - os: osx - osx_image: xcode7.3 - env: - - MATRIX_EVAL="" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON" - - - name: "XCode 10.3 C++11 sse2 release" - os: osx - osx_image: xcode10.3 - env: - - MATRIX_EVAL="" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON" - - - name: "XCode 12.2 C++11 sse2 release" - os: osx - osx_image: xcode12.2 - env: - - MATRIX_EVAL="" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "XCode 12.2 C++11 sse2 debug" - os: osx - osx_image: xcode12.2 - env: - - MATRIX_EVAL="" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "XCode 12.2 C++11 avx debug" - os: osx - osx_image: xcode12.2 - env: - - MATRIX_EVAL="" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "XCode 12.2 C++14 avx debug" - os: osx - osx_image: xcode12.2 - env: - - MATRIX_EVAL="" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "XCode 12.2 C++14 pure debug" - os: osx - osx_image: xcode12.2 - env: - - MATRIX_EVAL="" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_FORCE_PURE=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "XCode 12.2 C++17 pure debug" - os: osx - osx_image: xcode12.2 - env: - - MATRIX_EVAL="" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_FORCE_PURE=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "XCode 12.2 C++17 sse2 debug" - os: osx - osx_image: xcode12.2 - env: - - MATRIX_EVAL="" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE2=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "XCode 12.2 C++17 sse2 release" - os: osx - osx_image: xcode12.2 - env: - - MATRIX_EVAL="" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE2=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "XCode 12.2 C++17 avx release" - os: osx - osx_image: xcode12.2 - env: - - MATRIX_EVAL="" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "GCC 4.9 C++98 pure release" - os: linux - dist: Xenial - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-4.9 - env: - - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_FORCE_PURE=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "GCC 4.9 C++98 pure debug" - os: linux - dist: Xenial - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-4.9 - env: - - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_FORCE_PURE=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "GCC 4.9 C++98 ms debug" - os: linux - dist: Xenial - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-4.9 - env: - - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "GCC 4.9 C++11 ms debug" - os: linux - dist: Xenial - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-4.9 - env: - - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "GCC 4.9 C++11 pure debug" - os: linux - dist: Xenial - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-4.9 - env: - - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_FORCE_PURE=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "GCC 6 C++14 pure debug" - os: linux - dist: bionic - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-6 - env: - - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_FORCE_PURE=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "GCC 6 C++14 ms debug" - os: linux - dist: bionic - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-6 - env: - - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "GCC 7 C++17 ms debug" - os: linux - dist: bionic - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-7 - env: - - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "GCC 7 C++17 pure debug" - os: linux - dist: bionic - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-7 - env: - - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_FORCE_PURE=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "GCC 10 C++17 pure debug" - os: linux - dist: bionic - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-10 - env: - - MATRIX_EVAL="CC=gcc-10 && CXX=g++-10" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_FORCE_PURE=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "GCC 10 C++17 pure release" - os: linux - dist: bionic - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-10 - env: - - MATRIX_EVAL="CC=gcc-10 && CXX=g++-10" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_FORCE_PURE=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "Clang C++14 pure release" - os: linux - dist: Xenial - env: - - MATRIX_EVAL="CC=clang && CXX=clang++" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_FORCE_PURE=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "Clang C++14 pure debug" - os: linux - dist: Xenial - env: - - MATRIX_EVAL="CC=clang && CXX=clang++" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_FORCE_PURE=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "Clang C++14 sse2 debug" - os: linux - dist: Xenial - env: - - MATRIX_EVAL="CC=clang && CXX=clang++" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE2=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "Clang C++14 sse2 debug" - os: linux - dist: focal - env: - - MATRIX_EVAL="CC=clang && CXX=clang++" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE2=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "Clang C++17 sse2 debug" - os: linux - dist: focal - env: - - MATRIX_EVAL="CC=clang && CXX=clang++" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE2=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "Clang C++17 avx2 debug" - os: linux - dist: focal - env: - - MATRIX_EVAL="CC=clang && CXX=clang++" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_AVX2=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "Clang C++17 pure debug" - os: linux - dist: focal - env: - - MATRIX_EVAL="CC=clang && CXX=clang++" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_FORCE_PURE=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - - - name: "Clang C++17 pure release" - os: linux - dist: focal - env: - - MATRIX_EVAL="CC=clang && CXX=clang++" - - CMAKE_BUILD_ENV="-DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_FORCE_PURE=ON" - - CTEST_ENV="--parallel 4 --output-on-failure" - - CMAKE_ENV="--parallel" - -before_script: - - cmake --version - - eval "${MATRIX_EVAL}" - -script: - - ${CC} --version - - mkdir ./build - - cd ./build - - cmake -DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/install -DCMAKE_CXX_COMPILER=$COMPILER ${CMAKE_BUILD_ENV} .. - - cmake --build . ${CMAKE_ENV} - - ctest ${CTEST_ENV} - - cmake --build . --target install ${CMAKE_ENV} - - cd $TRAVIS_BUILD_DIR - - mkdir ./build_test_cmake - - cd ./build_test_cmake - - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -DCMAKE_PREFIX_PATH=$TRAVIS_BUILD_DIR/install - - cmake --build . - -