Browse Source

github/workflows: main workflow

* migration from travis-ci to github actions
Victor Seva 4 years ago
parent
commit
30f1c7b652
3 changed files with 40 additions and 29 deletions
  1. 39 0
      .github/workflows/main.yml
  2. 0 28
      .travis.yml
  3. 1 1
      README.md

+ 39 - 0
.github/workflows/main.yml

@@ -0,0 +1,39 @@
+---
+name: build
+'on':
+  push:
+    branches:
+      - main
+  pull_request:
+    branches:
+      - main
+  # Allows you to run this workflow manually from the Actions tab
+  workflow_dispatch:
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    container:
+      image: kamailio/pkg-kamailio-docker:dev-${{ matrix.distribution }}
+      volumes:
+        - ${{ github.workspace }}:/code
+      env:
+        DIST: ${{ matrix.distribution }}
+        CC: ${{ matrix.compilier }}
+    strategy:
+      matrix:
+        include:
+          - distribution: buster
+            compilier: gcc
+          - distribution: buster
+            compilier: clang
+          - distribution: sid
+            compilier: gcc
+          - distribution: sid
+            compilier: clang
+    steps:
+      - uses: actions/checkout@v2
+      - name: build
+        run: |
+          cd /code
+          ./test/travis/build_travis.sh
+        shell: bash

+ 0 - 28
.travis.yml

@@ -1,28 +0,0 @@
-sudo: required
-language: c
-compiler:
-  - gcc
-  - clang
-env:
-  - DIST=buster
-  - DIST=sid
-services:
-  - docker
-before_install:
-  - docker pull kamailio/pkg-kamailio-docker:dev-$DIST
-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"
-branches:
-  only:
-    - 'master'
-    - '/^5\.[0-9]+$/'
-notifications:
-  irc:
-    channels:
-      - "chat.freenode.net#kamailio-dev"
-    on_success: never
-    on_failure: always
-  email:
-    recipients:
-      - [email protected]
-    on_success: never
-    on_failure: always

+ 1 - 1
README.md

@@ -1,6 +1,6 @@
 # Kamailio - The Open Source SIP Server
 
-[![Build Status](https://travis-ci.org/kamailio/kamailio.svg?branch=master)](https://travis-ci.org/kamailio/kamailio)
+[![Build Status](https://github.com/kamailio/kamailio/actions/workflows/main.yml/badge.svg)](https://github.com/kamailio/kamailio/actions)
 [![Code Triage Badge](https://www.codetriage.com/kamailio/kamailio/badges/users.svg)](https://www.codetriage.com/kamailio/kamailio)
 
 Project Website: