Переглянути джерело

Merge pull request #63 from kosma/workflow

Replace Travis with Github Actions
Kosma Moczek 3 роки тому
батько
коміт
6b1a15aa29
3 змінених файлів з 15 додано та 11 видалено
  1. 13 0
      .github/workflows/c-cpp.yml
  2. 0 10
      .travis.yml
  3. 2 1
      README.md

+ 13 - 0
.github/workflows/c-cpp.yml

@@ -0,0 +1,13 @@
+name: C/C++ CI
+
+on: [push, pull_request]
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v3
+    - name: Install dependencies
+      run: sudo apt-get install -y clang-tools check
+    - name: make
+      run: make

+ 0 - 10
.travis.yml

@@ -1,10 +0,0 @@
-language: c
-compiler:
-  - gcc
-  - clang
-install: sudo apt-get install check
-script: make test
-notifications:
-  email:
-    on_success: change
-    on_failure: change

+ 2 - 1
README.md

@@ -1,6 +1,7 @@
 # minmea, a lightweight GPS NMEA 0183 parser library
 
-[![Build Status](https://travis-ci.org/kosma/minmea.svg?branch=master)](https://travis-ci.org/kosma/minmea)
+[![C/C++ 
+CI](https://github.com/kosma/minmea/actions/workflows/c-cpp.yml/badge.svg)](https://github.com/kosma/minmea/actions/workflows/c-cpp.yml)
 
 Minmea is a minimalistic GPS parser library written in pure C intended for
 resource-constrained platforms, especially microcontrollers and other embedded