move from Travis CI to GitHub Actions

This commit is contained in:
David du Colombier 2022-04-04 22:03:56 +02:00
parent 86484cad93
commit 93999bc958
4 changed files with 35 additions and 25 deletions

19
.github/workflows/c.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: C
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: make nuke
run: make nuke
- name: make
run: make

15
.github/workflows/coverity.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: Coverity Scan
on:
push:
branches: [ main ]
jobs:
coverity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: vapier/coverity-scan-action@v1
with:
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
token: ${{ secrets.COVERITY_SCAN_TOKEN }}

View File

@ -1,24 +0,0 @@
language: c
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "iB2N25MLDdYPhps5dyVoxm+SMHYek/6MxGKCEw2A8NTFSIfuWPcBliwOKCrVHDMuTb9kgFucrbcK8DAFTADikm81xHfZSALhrwtwIYti8F29wAniG4UHqfQyR7WWX9dm4UhVjsta/BIP8pgMms+1GWjiZPQhARE0n+tFHpCuPzFAi78hMkT40pbq0DObQQELrLN80vhu5IzOS5ZW8yaFy6P7jdmCUBT2DHM6W+b2NU3/ag0L2p21RFa5PewPNgXmXpyPbnSutf0M9QzNZqEElzRBwglOAS7RLT29D0lxRA+RuH1r98ANh4/lqrJLdllrMLtjyoZ+ycPXGAOq0/sF7OeeygMBr3jQz7BphYyFvzl8fcf5SacPCv+dQFCmbOloHPyVJMoscH/PjS89PeJsMFNEK4GbJtVjYOyqFtbzGansUOJGB73GWc6YH0Zptebt/CMZSQ5zmb/iJrUZyMvuYbmjB9UCCyPLi36mBJoIM5CF4gVH8bnhAyTU0EfFIvh/9EFn4s/hRHLuY7GCLWroPQOQE0LX+idyY2r2TeSw/PRM5S5kUX1HFqW7RN/oui9g6UuUscslkSz+d5P1TGAif/egxtMy9YGwfFJlZyHlkp40aEV2xkUTz5PvNWAZkGDq5Sv9hLXOJgkGcqNyBFI7uDiIZgr11J9RMZSanrMaZaI="
before_install:
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
addons:
coverity_scan:
project:
name: "0intro/libelf"
description: "Build submitted via Travis CI"
notification_email: 0intro@gmail.com
build_command_prepend: "make nuke"
build_command: "make"
branch_pattern: master
script:
- make nuke
- make

View File

@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/0intro/libelf.svg?branch=master)](https://travis-ci.org/0intro/libelf)
[![Build Status](https://github.com/0intro/libelf/workflows/C/badge.svg)](https://github.com/0intro/libelf/actions/workflows/c.yml)
[![Coverity Scan Build Status](https://scan.coverity.com/projects/0intro-libelf/badge.svg)](https://scan.coverity.com/projects/0intro-libelf)
libelf