Parcourir la source

build system: workflow cleanup

Michele Caini il y a 4 ans
Parent
commit
a70b7daec4
2 fichiers modifiés avec 8 ajouts et 28 suppressions
  1. 6 21
      .github/workflows/build.yml
  2. 2 7
      .github/workflows/sanitizer.yml

+ 6 - 21
.github/workflows/build.yml

@@ -54,13 +54,8 @@ jobs:
     strategy:
       matrix:
         compiler: [g++, clang++]
-        id_type: [uint32, uint64]
+        id_type: ["std::uint32_t", "std::uint64_t"]
         cxx_std: [cxx_std_17, cxx_std_20]
-        include:
-          - id_type: uint64
-            id_type_variable: -DENTT_ID_TYPE=std::uint64_t
-          - cxx_std: cxx_std_20
-            cxx_std_variable: -DENTT_CXX_STD=cxx_std_20
 
     runs-on: ubuntu-latest
 
@@ -71,7 +66,7 @@ jobs:
       env:
         CXX: ${{ matrix.compiler }}
       run: |
-        cmake -DENTT_BUILD_TESTING=ON ${{ matrix.id_type_variable }} ${{ matrix.cxx_std_variable }} ..
+        cmake -DENTT_BUILD_TESTING=ON -DENTT_CXX_STD=${{ matrix.cxx_std }} -DENTT_ID_TYPE=${{ matrix.id_type }} ..
         make -j4
     - name: Run tests
       working-directory: build
@@ -111,13 +106,8 @@ jobs:
 
     strategy:
       matrix:
-        id_type: [uint32, uint64]
+        id_type: ["std::uint32_t", "std::uint64_t"]
         cxx_std: [cxx_std_17, cxx_std_20]
-        include:
-          - id_type: uint64
-            id_type_variable: -DENTT_ID_TYPE=std::uint64_t
-          - cxx_std: cxx_std_20
-            cxx_std_variable: -DENTT_CXX_STD=cxx_std_20
 
     runs-on: windows-latest
 
@@ -126,7 +116,7 @@ jobs:
     - name: Compile tests
       working-directory: build
       run: |
-        cmake -DENTT_BUILD_TESTING=ON ${{ matrix.id_type_variable }} ${{ matrix.cxx_std_variable }} ..
+        cmake -DENTT_BUILD_TESTING=ON -DENTT_CXX_STD=${{ matrix.cxx_std }} -DENTT_ID_TYPE=${{ matrix.id_type }} ..
         cmake --build . -j 4
     - name: Run tests
       working-directory: build
@@ -156,13 +146,8 @@ jobs:
 
     strategy:
       matrix:
-        id_type: [uint32, uint64]
+        id_type: ["std::uint32_t", "std::uint64_t"]
         cxx_std: [cxx_std_17, cxx_std_20]
-        include:
-          - id_type: uint64
-            id_type_variable: -DENTT_ID_TYPE=std::uint64_t
-          - cxx_std: cxx_std_20
-            cxx_std_variable: -DENTT_CXX_STD=cxx_std_20
 
     runs-on: macOS-latest
 
@@ -171,7 +156,7 @@ jobs:
     - name: Compile tests
       working-directory: build
       run: |
-        cmake -DENTT_BUILD_TESTING=ON ${{ matrix.id_type_variable }} ${{ matrix.cxx_std_variable }} ..
+        cmake -DENTT_BUILD_TESTING=ON -DENTT_CXX_STD=${{ matrix.cxx_std }} -DENTT_ID_TYPE=${{ matrix.id_type }} ..
         make -j4
     - name: Run tests
       working-directory: build

+ 2 - 7
.github/workflows/sanitizer.yml

@@ -10,13 +10,8 @@ jobs:
     strategy:
       matrix:
         compiler: [clang++]
-        id_type: [uint32, uint64]
+        id_type: ["std::uint32_t", "std::uint64_t"]
         cxx_std: [cxx_std_17, cxx_std_20]
-        include:
-          - id_type: uint64
-            id_type_variable: -DENTT_ID_TYPE=std::uint64_t
-          - cxx_std: cxx_std_20
-            cxx_std_variable: -DENTT_CXX_STD=cxx_std_20
 
     runs-on: ubuntu-latest
 
@@ -27,7 +22,7 @@ jobs:
       env:
         CXX: ${{ matrix.compiler }}
       run: |
-        cmake -DENTT_USE_SANITIZER=ON -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ${{ matrix.id_type_variable }} ${{ matrix.cxx_std_variable }} ..
+        cmake -DENTT_USE_SANITIZER=ON -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON -DENTT_CXX_STD=${{ matrix.cxx_std }} -DENTT_ID_TYPE=${{ matrix.id_type }} ..
         make -j4
     - name: Run tests
       working-directory: build