migrate to GitHub Actions (#230)

This commit is contained in:
Roman Fomin 2021-06-28 17:43:22 +07:00 committed by GitHub
parent a3387c2f1d
commit d1f113a52c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

40
.github/workflows/main.yml vendored Normal file
View File

@ -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