Ver código fonte

workflow tidying (#1396)

Normalisation of some of the workflow files
redraincatching 1 ano atrás
pai
commit
e96f22ab71

+ 17 - 8
.github/workflows/macos.yml

@@ -1,16 +1,23 @@
-name: C/C++ CI MacOS
+name: MacOS
 
 
 on:
 on:
   push:
   push:
-    branches: [ $default-branch ]
   pull_request:
   pull_request:
     types: [ opened, reopened, synchronize ]
     types: [ opened, reopened, synchronize ]
 
 
 jobs:
 jobs:
   builds:
   builds:
-    runs-on: macos-12
+    strategy:
+      fail-fast: false
+      matrix: 
+        os: [ 'macos-11', 'macos-12' ]
+    runs-on: ${{ matrix.os }}
+
     steps:
     steps:
     - uses: actions/checkout@v4
     - uses: actions/checkout@v4
+      with:
+        fetch-depth: 0
+
     - name: Install dependencies
     - name: Install dependencies
       run: |
       run: |
         # Unlink and re-link to prevent errors when github mac runner images
         # Unlink and re-link to prevent errors when github mac runner images
@@ -32,11 +39,13 @@ jobs:
             hiredis \
             hiredis \
             mongo-c-driver \
             mongo-c-driver \
             libmicrohttpd
             libmicrohttpd
-    - name: configure
+
+    - name: Configure
       run: PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opt/[email protected]/lib/pkgconfig ./configure
       run: PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opt/[email protected]/lib/pkgconfig ./configure
-    - name: make
+    - name: Compile
       run: make
       run: make
-    - name: make check
+    - name: Unit Test
       run: make check
       run: make check
-    - name: apps tests
-      run: cd examples && ./run_tests.sh
+    - name: Integration Test
+      working-directory: examples
+      run: ./run_tests.sh

+ 5 - 2
.github/workflows/mingw.yml

@@ -1,6 +1,9 @@
-name: mingw 
+name: mingw
 
 
-on: [push]
+on:
+  push:
+  pull_request:
+    types: [ opened, reopened, synchronize ]
 
 
 jobs:
 jobs:
   build:
   build:

+ 5 - 2
.github/workflows/msvc.yml

@@ -1,6 +1,9 @@
 name: msvc
 name: msvc
 
 
-on: [push]
+on:
+  push:
+  pull_request:
+    types: [ opened, reopened, synchronize ]
 
 
 jobs:
 jobs:
   compile:
   compile:
@@ -88,7 +91,7 @@ jobs:
         7z a coturn_windows_msvc.zip ${{github.workspace}}\build\install\*
         7z a coturn_windows_msvc.zip ${{github.workspace}}\build\install\*
         cmake --build . --config ${{matrix.BUILD_TYPE}} --target package
         cmake --build . --config ${{matrix.BUILD_TYPE}} --target package
 
 
-    - name: update 
+    - name: Update 
       if: ${{ matrix.BUILD_TYPE == 'Release' }}
       if: ${{ matrix.BUILD_TYPE == 'Release' }}
       uses: actions/upload-artifact@v4
       uses: actions/upload-artifact@v4
       with:
       with: