diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..217d7279 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/README.md b/README.md index 7852b6bd..88e7e3a4 100644 --- a/README.md +++ b/README.md @@ -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)