mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 10:14:35 +00:00
c.i.: Add github actions
This commit is contained in:
parent
c2ad8b5e09
commit
1cae067e11
@ -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
|
|
74
.github/workflows/ci.yml
vendored
Normal file
74
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
name: ci
|
||||||
|
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
Pure:
|
||||||
|
runs-on: ${{ matrix.os}}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
std: [98, 11, 14, 17, 20]
|
||||||
|
config: [Debug, Release]
|
||||||
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
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 }}."
|
||||||
|
#- run: cmake -S. -B ./build_98_pure -D GLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_FORCE_PURE=ON -DCMAKE_BUILD_TYPE=${{matrix.config}}
|
||||||
|
- run: cmake -S. -B ./build_auto -DCMAKE_BUILD_TYPE=${{matrix.config}}
|
||||||
|
- run: cmake --build ./build_auto --parallel --config ${{matrix.config}}
|
||||||
|
- run: ctest --parallel 4 --verbose -C ${{matrix.config}} --test-dir ./build_auto
|
||||||
|
|
||||||
|
#name: GLM Unit Tests
|
||||||
|
|
||||||
|
#run-name: ${{ github.actor }} is running GLM unit tests
|
||||||
|
|
||||||
|
#on:
|
||||||
|
# push:
|
||||||
|
# pull_request:
|
||||||
|
# branches:
|
||||||
|
# - master
|
||||||
|
|
||||||
|
#jobs:
|
||||||
|
# windows-latest:
|
||||||
|
# runs-on: windows-latest
|
||||||
|
# strategy:
|
||||||
|
# fail-fast: false
|
||||||
|
# matrix:
|
||||||
|
# std: [98, 11, 14, 17, 20]
|
||||||
|
#os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
# config: [Debug, Release]
|
||||||
|
|
||||||
|
# name: "${{ matrix.os}} ${{ matrix.cxx }} C++:${{ matrix.std }}"
|
||||||
|
# runs-on: ubuntu-latest, macos-latest, windows-latest
|
||||||
|
# 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}}
|
388
.travis.yml
388
.travis.yml
@ -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 .
|
|
||||||
|
|
||||||
|
|
@ -70,7 +70,7 @@ static int test_abs()
|
|||||||
glm::bvec4 const col2 = glm::equal(D[1], A[1]);
|
glm::bvec4 const col2 = glm::equal(D[1], A[1]);
|
||||||
glm::bvec4 const col3 = glm::equal(D[2], A[2]);
|
glm::bvec4 const col3 = glm::equal(D[2], A[2]);
|
||||||
glm::bvec4 const col4 = glm::equal(D[3], A[3]);
|
glm::bvec4 const col4 = glm::equal(D[3], A[3]);
|
||||||
Error += glm::all(glm::bvec4{glm::all(col1), glm::all(col2), glm::all(col3), glm::all(col4)}) ? 0 : 1;
|
Error += glm::all(glm::bvec4(glm::all(col1), glm::all(col2), glm::all(col3), glm::all(col4))) ? 0 : 1;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
glm::mat4x3 A(
|
glm::mat4x3 A(
|
||||||
@ -91,7 +91,7 @@ static int test_abs()
|
|||||||
glm::bvec3 const col2 = glm::equal(D[1], A[1]);
|
glm::bvec3 const col2 = glm::equal(D[1], A[1]);
|
||||||
glm::bvec3 const col3 = glm::equal(D[2], A[2]);
|
glm::bvec3 const col3 = glm::equal(D[2], A[2]);
|
||||||
glm::bvec3 const col4 = glm::equal(D[3], A[3]);
|
glm::bvec3 const col4 = glm::equal(D[3], A[3]);
|
||||||
Error += glm::all(glm::bvec4{glm::all(col1), glm::all(col2), glm::all(col3), glm::all(col4)}) ? 0 : 1;
|
Error += glm::all(glm::bvec4(glm::all(col1), glm::all(col2), glm::all(col3), glm::all(col4))) ? 0 : 1;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
glm::mat4x2 A(
|
glm::mat4x2 A(
|
||||||
@ -112,7 +112,7 @@ static int test_abs()
|
|||||||
glm::bvec2 const col2 = glm::equal(D[1], A[1]);
|
glm::bvec2 const col2 = glm::equal(D[1], A[1]);
|
||||||
glm::bvec2 const col3 = glm::equal(D[2], A[2]);
|
glm::bvec2 const col3 = glm::equal(D[2], A[2]);
|
||||||
glm::bvec2 const col4 = glm::equal(D[3], A[3]);
|
glm::bvec2 const col4 = glm::equal(D[3], A[3]);
|
||||||
Error += glm::all(glm::bvec4{glm::all(col1), glm::all(col2), glm::all(col3), glm::all(col4)}) ? 0 : 1;
|
Error += glm::all(glm::bvec4(glm::all(col1), glm::all(col2), glm::all(col3), glm::all(col4))) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------- //
|
// -------------------- //
|
||||||
@ -134,7 +134,7 @@ static int test_abs()
|
|||||||
glm::bvec4 const col1 = glm::equal(D[0], A[0]);
|
glm::bvec4 const col1 = glm::equal(D[0], A[0]);
|
||||||
glm::bvec4 const col2 = glm::equal(D[1], A[1]);
|
glm::bvec4 const col2 = glm::equal(D[1], A[1]);
|
||||||
glm::bvec4 const col3 = glm::equal(D[2], A[2]);
|
glm::bvec4 const col3 = glm::equal(D[2], A[2]);
|
||||||
Error += glm::all(glm::bvec3{glm::all(col1), glm::all(col2), glm::all(col3)}) ? 0 : 1;
|
Error += glm::all(glm::bvec3(glm::all(col1), glm::all(col2), glm::all(col3))) ? 0 : 1;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
glm::mat3 A(
|
glm::mat3 A(
|
||||||
@ -152,7 +152,7 @@ static int test_abs()
|
|||||||
glm::bvec3 const col1 = glm::equal(D[0], A[0]);
|
glm::bvec3 const col1 = glm::equal(D[0], A[0]);
|
||||||
glm::bvec3 const col2 = glm::equal(D[1], A[1]);
|
glm::bvec3 const col2 = glm::equal(D[1], A[1]);
|
||||||
glm::bvec3 const col3 = glm::equal(D[2], A[2]);
|
glm::bvec3 const col3 = glm::equal(D[2], A[2]);
|
||||||
Error += glm::all(glm::bvec3{glm::all(col1), glm::all(col2), glm::all(col3)}) ? 0 : 1;
|
Error += glm::all(glm::bvec3(glm::all(col1), glm::all(col2), glm::all(col3))) ? 0 : 1;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
glm::mat3x2 A(
|
glm::mat3x2 A(
|
||||||
@ -170,7 +170,7 @@ static int test_abs()
|
|||||||
glm::bvec2 const col1 = glm::equal(D[0], A[0]);
|
glm::bvec2 const col1 = glm::equal(D[0], A[0]);
|
||||||
glm::bvec2 const col2 = glm::equal(D[1], A[1]);
|
glm::bvec2 const col2 = glm::equal(D[1], A[1]);
|
||||||
glm::bvec2 const col3 = glm::equal(D[2], A[2]);
|
glm::bvec2 const col3 = glm::equal(D[2], A[2]);
|
||||||
Error += glm::all(glm::bvec3{glm::all(col1), glm::all(col2), glm::all(col3)}) ? 0 : 1;
|
Error += glm::all(glm::bvec3(glm::all(col1), glm::all(col2), glm::all(col3))) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------- //
|
// -------------------- //
|
||||||
@ -189,7 +189,7 @@ static int test_abs()
|
|||||||
glm::mat2x4 D = glm::abs(C);
|
glm::mat2x4 D = glm::abs(C);
|
||||||
glm::bvec4 const col1 = glm::equal(D[0], A[0]);
|
glm::bvec4 const col1 = glm::equal(D[0], A[0]);
|
||||||
glm::bvec4 const col2 = glm::equal(D[1], A[1]);
|
glm::bvec4 const col2 = glm::equal(D[1], A[1]);
|
||||||
Error += glm::all(glm::bvec2{glm::all(col1), glm::all(col2)}) ? 0 : 1;
|
Error += glm::all(glm::bvec2(glm::all(col1), glm::all(col2))) ? 0 : 1;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
glm::mat2x3 A(
|
glm::mat2x3 A(
|
||||||
@ -204,7 +204,7 @@ static int test_abs()
|
|||||||
glm::mat2x3 D = glm::abs(C);
|
glm::mat2x3 D = glm::abs(C);
|
||||||
glm::bvec3 const col1 = glm::equal(D[0], A[0]);
|
glm::bvec3 const col1 = glm::equal(D[0], A[0]);
|
||||||
glm::bvec3 const col2 = glm::equal(D[1], A[1]);
|
glm::bvec3 const col2 = glm::equal(D[1], A[1]);
|
||||||
Error += glm::all(glm::bvec2{glm::all(col1), glm::all(col2)}) ? 0 : 1;
|
Error += glm::all(glm::bvec2(glm::all(col1), glm::all(col2))) ? 0 : 1;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
glm::mat2 A(
|
glm::mat2 A(
|
||||||
@ -219,7 +219,7 @@ static int test_abs()
|
|||||||
glm::mat2 D = glm::abs(C);
|
glm::mat2 D = glm::abs(C);
|
||||||
glm::bvec2 const col1 = glm::equal(D[0], A[0]);
|
glm::bvec2 const col1 = glm::equal(D[0], A[0]);
|
||||||
glm::bvec2 const col2 = glm::equal(D[1], A[1]);
|
glm::bvec2 const col2 = glm::equal(D[1], A[1]);
|
||||||
Error += glm::all(glm::bvec2{glm::all(col1), glm::all(col2)}) ? 0 : 1;
|
Error += glm::all(glm::bvec2(glm::all(col1), glm::all(col2))) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Error;
|
return Error;
|
||||||
|
Loading…
Reference in New Issue
Block a user