Browse code

build: harden main.yml permissions Signed-off-by: Alex <aleksandrosansan@gmail.com>

Alex authored on 20/09/2022 15:11:59 • Victor Seva committed on 21/09/2022 07:29:31
Showing 1 changed files
... ...
@@ -8,6 +8,8 @@ name: build
8 8
       - '5.5'
9 9
   # Allows you to run this workflow manually from the Actions tab
10 10
   workflow_dispatch:
11
+permissions:
12
+  contents: read # to fetch code (actions/checkout)
11 13
 jobs:
12 14
   build:
13 15
     runs-on: ubuntu-latest
Browse code

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

Victor Seva authored on 04/07/2022 07:25:38
Showing 1 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:
Browse code

github: enable 5.5 and 5.6 branches [skip ci]

Victor Seva authored on 01/07/2022 18:52:20
Showing 1 changed files
... ...
@@ -4,6 +4,8 @@ name: build
4 4
   push:
5 5
     branches:
6 6
       - master
7
+      - '5.6'
8
+      - '5.5'
7 9
   pull_request:
8 10
     branches:
9 11
       - master
... ...
@@ -13,7 +15,7 @@ jobs:
13 15
   build:
14 16
     runs-on: ubuntu-latest
15 17
     container:
16
-      image: kamailio/pkg-kamailio-docker:dev-${{ matrix.distribution }}
18
+      image: kamailio/pkg-kamailio-docker:${{ github.ref_name }}-${{ matrix.distribution }}
17 19
       volumes:
18 20
         - ${{ github.workspace }}:/code
19 21
       env:
Browse code

github: use bullseye docker image

Victor Seva authored on 24/01/2022 09:07:15
Showing 1 changed files
... ...
@@ -22,9 +22,9 @@ jobs:
22 22
     strategy:
23 23
       matrix:
24 24
         include:
25
-          - distribution: buster
25
+          - distribution: bullseye
26 26
             compilier: gcc
27
-          - distribution: buster
27
+          - distribution: bullseye
28 28
             compilier: clang
29 29
           - distribution: sid
30 30
             compilier: gcc
Browse code

github/workflow: add gcc-problem-patcher [skip ci]

let's make more visible the problems detected by the compiler

https://github.com/marketplace/actions/gcc-problem-matcher?version=0.1

Victor Seva authored on 25/03/2021 10:31:58
Showing 1 changed files
... ...
@@ -32,6 +32,7 @@ jobs:
32 32
             compilier: clang
33 33
     steps:
34 34
       - uses: actions/checkout@v2
35
+      - uses: ammaraskar/gcc-problem-matcher@0.1
35 36
       - name: build
36 37
         run: |
37 38
           cd /code
Browse code

github/workflows: fix branch name

Victor Seva authored on 24/03/2021 23:44:13
Showing 1 changed files
... ...
@@ -3,10 +3,10 @@ name: build
3 3
 'on':
4 4
   push:
5 5
     branches:
6
-      - main
6
+      - master
7 7
   pull_request:
8 8
     branches:
9
-      - main
9
+      - master
10 10
   # Allows you to run this workflow manually from the Actions tab
11 11
   workflow_dispatch:
12 12
 jobs:
Browse code

github/workflows: main workflow

* migration from travis-ci to github actions

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