Browse code

github: use different file to define PR checks [skip ci]

Victor Seva authored on 04/07/2022 07:25:38
Showing 2 changed files
... ...
@@ -6,9 +6,6 @@ name: build
6 6
       - master
7 7
       - '5.6'
8 8
       - '5.5'
9
-  pull_request:
10
-    branches:
11
-      - master
12 9
   # Allows you to run this workflow manually from the Actions tab
13 10
   workflow_dispatch:
14 11
 jobs:
15 12
new file mode 100644
... ...
@@ -0,0 +1,33 @@
1
+---
2
+name: checks_pr
3
+'on':
4
+  pull_request:
5
+    branches:
6
+      - master
7
+  # Allows you to run this workflow manually from the Actions tab
8
+  workflow_dispatch:
9
+jobs:
10
+  build:
11
+    runs-on: ubuntu-latest
12
+    container:
13
+      image: kamailio/pkg-kamailio-docker:master-${{ matrix.distribution }}
14
+      volumes:
15
+        - ${{ github.workspace }}:/code
16
+      env:
17
+        DIST: ${{ matrix.distribution }}
18
+        CC: ${{ matrix.compilier }}
19
+    strategy:
20
+      matrix:
21
+        include:
22
+          - distribution: bullseye
23
+            compilier: gcc
24
+          - distribution: bullseye
25
+            compilier: clang
26
+    steps:
27
+      - uses: actions/checkout@v2
28
+      - uses: ammaraskar/gcc-problem-matcher@0.1
29
+      - name: build
30
+        run: |
31
+          cd /code
32
+          ./test/travis/build_travis.sh
33
+        shell: bash