diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..dad7602 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,14 @@ +name: CI +on: [push,pull_request] +jobs: + strategy: + matrix: + compiler: [gcc, clang] + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: install dependencies + run: sudo apt-get install -y libgl1-mesa-dev freeglut3-dev ${{ matrix.compiler }} + - name: build + run: scons diff --git a/README.md b/README.md index 6c07be1..f41c557 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ glsnake ------- -[![Travis Build Status](https://travis-ci.org/jaqx0r/glsnake.svg?branch=master)](https://travis-ci.org/jaqx0r/glsnake) +![ci](https://github.com/jaqx0r/glsnake/workflows/CI/badge.svg) glsnake has been dubbed a "hardware accelerated executive stress toy" by its fans. It merely provides a virtual Rubiks' Snake toy for the user to play