|
|
@@ -9,46 +9,42 @@ jobs:
|
|
|
|
|
|
strategy:
|
|
|
matrix:
|
|
|
- compiler: [
|
|
|
- g++-7, g++-8, g++-9, g++,
|
|
|
- clang++-8, clang++-9, clang++-10, clang++
|
|
|
- ]
|
|
|
+ compiler:
|
|
|
+ - pkg: g++-7
|
|
|
+ exe: g++-7
|
|
|
+ - pkg: g++-8
|
|
|
+ exe: g++-8
|
|
|
+ - pkg: g++-9
|
|
|
+ exe: g++-9
|
|
|
+ - pkg: g++
|
|
|
+ exe: g++
|
|
|
+ - pkg: clang-8
|
|
|
+ exe: clang++-8
|
|
|
+ - pkg: clang-9
|
|
|
+ exe: clang++-9
|
|
|
+ - pkg: clang-10
|
|
|
+ exe: clang++-10
|
|
|
+ - pkg: clang
|
|
|
+ exe: clang++
|
|
|
+ id_type: [uint32, uint64]
|
|
|
+ include:
|
|
|
+ - id_type: uint64
|
|
|
+ id_type_option: -DENTT_BUILD_UINT64=ON
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
- - name: Install g++-7
|
|
|
- if: ${{ matrix.compiler == 'g++-7' }}
|
|
|
- run: |
|
|
|
- sudo apt-get update
|
|
|
- sudo apt-get install g++-7 -y
|
|
|
- - name: Install g++-8
|
|
|
- if: ${{ matrix.compiler == 'g++-8' }}
|
|
|
- run: |
|
|
|
- sudo apt-get update
|
|
|
- sudo apt-get install g++-8 -y
|
|
|
- - name: Install clang-8
|
|
|
- if: ${{ matrix.compiler == 'clang++-8' }}
|
|
|
- run: |
|
|
|
- sudo apt-get update
|
|
|
- sudo apt-get install clang-8 -y
|
|
|
- - name: Install clang-9
|
|
|
- if: ${{ matrix.compiler == 'clang++-9' }}
|
|
|
+ - name: Install compiler
|
|
|
run: |
|
|
|
sudo apt-get update
|
|
|
- sudo apt-get install clang-9 -y
|
|
|
- - name: Install clang-10
|
|
|
- if: ${{ matrix.compiler == 'clang++-10' }}
|
|
|
- run: |
|
|
|
- sudo apt-get update
|
|
|
- sudo apt-get install clang-10 -y
|
|
|
+ sudo apt-get install ${{ matrix.compiler.pkg }} -y
|
|
|
- name: Compile tests
|
|
|
working-directory: build
|
|
|
env:
|
|
|
- CXX: ${{ matrix.compiler }}
|
|
|
+ CXX: ${{ matrix.compiler.exe }}
|
|
|
run: |
|
|
|
- cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ..
|
|
|
+ cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ${{ matrix.id_type_option }} ..
|
|
|
make -j4
|
|
|
- name: Run tests
|
|
|
working-directory: build
|
|
|
@@ -63,11 +59,14 @@ jobs:
|
|
|
matrix:
|
|
|
os: [windows-latest, windows-2016]
|
|
|
toolset: [clang-cl, default, v141]
|
|
|
+ id_type: [uint32, uint64]
|
|
|
include:
|
|
|
- toolset: clang-cl
|
|
|
toolset_option: -T"ClangCl"
|
|
|
- toolset: v141
|
|
|
toolset_option: -T"v141"
|
|
|
+ - id_type: uint64
|
|
|
+ id_type_option: -DENTT_BUILD_UINT64=ON
|
|
|
exclude:
|
|
|
- os: windows-2016
|
|
|
toolset: clang-cl
|
|
|
@@ -81,7 +80,7 @@ jobs:
|
|
|
- name: Compile tests
|
|
|
working-directory: build
|
|
|
run: |
|
|
|
- cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ${{ matrix.toolset_option }} ..
|
|
|
+ cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ${{ matrix.id_type_option }} ${{ matrix.toolset_option }} ..
|
|
|
cmake --build . -j 4
|
|
|
- name: Run tests
|
|
|
working-directory: build
|
|
|
@@ -91,6 +90,14 @@ jobs:
|
|
|
|
|
|
macos:
|
|
|
timeout-minutes: 10
|
|
|
+
|
|
|
+ strategy:
|
|
|
+ matrix:
|
|
|
+ id_type: [uint32, uint64]
|
|
|
+ include:
|
|
|
+ - id_type: uint64
|
|
|
+ id_type_option: -DENTT_BUILD_UINT64=ON
|
|
|
+
|
|
|
runs-on: macOS-latest
|
|
|
|
|
|
steps:
|
|
|
@@ -98,7 +105,7 @@ jobs:
|
|
|
- name: Compile tests
|
|
|
working-directory: build
|
|
|
run: |
|
|
|
- cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ..
|
|
|
+ cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ${{ matrix.id_type_option }} ..
|
|
|
make -j4
|
|
|
- name: Run tests
|
|
|
working-directory: build
|