Browse Source

build: minor changes to workflows

Michele Caini 4 năm trước cách đây
mục cha
commit
ec4b383198
2 tập tin đã thay đổi với 28 bổ sung28 xóa
  1. 27 27
      .github/workflows/coverage.yml
  2. 1 1
      .github/workflows/sanitizer.yml

+ 27 - 27
.github/workflows/coverage.yml

@@ -9,30 +9,30 @@ jobs:
     runs-on: ubuntu-latest
 
     steps:
-      - uses: actions/checkout@v2
-      - name: Compile tests
-        working-directory: build
-        env:
-          CXXFLAGS: "--coverage -fno-inline"
-          CXX: g++
-        run: |
-          cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ..
-          make -j4
-      - name: Run tests
-        working-directory: build
-        env:
-          CTEST_OUTPUT_ON_FAILURE: 1
-        run: ctest --timeout 30 -C Debug -j4
-      - name: Collect data
-        working-directory: build
-        run: |
-          sudo apt install lcov
-          lcov -c -d . -o coverage.info
-          lcov -l coverage.info
-      - name: Upload coverage to Codecov
-        uses: codecov/codecov-action@v2
-        with:
-          token: ${{ secrets.CODECOV_TOKEN }}
-          files: build/coverage.info
-          name: EnTT
-          fail_ci_if_error: true
+    - uses: actions/checkout@v2
+    - name: Compile tests
+      working-directory: build
+      env:
+        CXXFLAGS: "--coverage -fno-inline"
+        CXX: g++
+      run: |
+        cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ..
+        make -j4
+    - name: Run tests
+      working-directory: build
+      env:
+        CTEST_OUTPUT_ON_FAILURE: 1
+      run: ctest --timeout 30 -C Debug -j4
+    - name: Collect data
+      working-directory: build
+      run: |
+        sudo apt install lcov
+        lcov -c -d . -o coverage.info
+        lcov -l coverage.info
+    - name: Upload coverage to Codecov
+      uses: codecov/codecov-action@v2
+      with:
+        token: ${{ secrets.CODECOV_TOKEN }}
+        files: build/coverage.info
+        name: EnTT
+        fail_ci_if_error: true

+ 1 - 1
.github/workflows/sanitizer.yml

@@ -4,7 +4,7 @@ on: [push, pull_request]
 
 jobs:
 
-  linux:
+  clang:
     timeout-minutes: 10
 
     strategy: