Browse code

github/workflows: main workflow

* migration from travis-ci to github actions

Victor Seva authored on 24/03/2021 22:38:58
Showing 3 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
0 40
deleted file mode 100644
... ...
@@ -1,28 +0,0 @@
1
-sudo: required
2
-language: c
3
-compiler:
4
-  - gcc
5
-  - clang
6
-env:
7
-  - DIST=buster
8
-  - DIST=sid
9
-services:
10
-  - docker
11
-before_install:
12
-  - docker pull kamailio/pkg-kamailio-docker:dev-$DIST
13
-script: docker run -v $TRAVIS_BUILD_DIR:/code:rw kamailio/pkg-kamailio-docker:dev-$DIST /bin/bash -c "cd /code; CC=$CC DIST=$DIST ./test/travis/build_travis.sh"
14
-branches:
15
-  only:
16
-    - 'master'
17
-    - '/^5\.[0-9]+$/'
18
-notifications:
19
-  irc:
20
-    channels:
21
-      - "chat.freenode.net#kamailio-dev"
22
-    on_success: never
23
-    on_failure: always
24
-  email:
25
-    recipients:
26
-      - sr-dev@lists.kamailio.org
27
-    on_success: never
28
-    on_failure: always
... ...
@@ -1,6 +1,6 @@
1 1
 # Kamailio - The Open Source SIP Server
2 2
 
3
-[![Build Status](https://travis-ci.org/kamailio/kamailio.svg?branch=master)](https://travis-ci.org/kamailio/kamailio)
3
+[![Build Status](https://github.com/kamailio/kamailio/actions/workflows/main.yml/badge.svg)](https://github.com/kamailio/kamailio/actions)
4 4
 [![Code Triage Badge](https://www.codetriage.com/kamailio/kamailio/badges/users.svg)](https://www.codetriage.com/kamailio/kamailio)
5 5
 
6 6
 Project Website: