From d1f113a52ca922e3d7e5f04a79bb98ff1d938850 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Mon, 28 Jun 2021 17:43:22 +0700 Subject: [PATCH] migrate to GitHub Actions (#230) --- .github/workflows/main.yml | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..3c4b3804 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,40 @@ +name: Woof + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-18.04 + + strategy: + matrix: + compiler: [clang, gcc] + + steps: + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install libpng-dev libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev + + - uses: actions/checkout@v2 + + - name: Make + env: + CC: ${{ matrix.compiler }} + run: $GITHUB_WORKSPACE/.travis.sh + + cppcheck: + runs-on: ubuntu-18.04 + + steps: + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install cppcheck + + - uses: actions/checkout@v2 + + - name: Run cppcheck + env: + ANALYZE: true + run: $GITHUB_WORKSPACE/.travis.sh