Skip to content

Commit

Permalink
Add CI GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
dspinellis committed Jun 24, 2024
1 parent 87d4173 commit 2d9e7b8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: C Build and Test

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@main

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential make perl default-jre
- name: Verify installations
run: |
make --version
perl --version
java -version
- name: Compile the project
run: make

- name: Run tests
run: make test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/dspinellis/cscout.svg?branch=master)](https://travis-ci.org/dspinellis/cscout)
![Build and Test](https://github.com/dspinellis/cscout/actions/workflows/ci.yml/badge.svg)
[![Coverity Scan Build Status](https://scan.coverity.com/projects/8463/badge.svg)](https://scan.coverity.com/projects/dspinellis-cscout)


Expand Down

0 comments on commit 2d9e7b8

Please sign in to comment.