diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index b0933ba..a21f991 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -3,8 +3,6 @@ name: CI on: push: branches: [ master ] - pull_request: - branches: [ master ] jobs: build_linux: diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml new file mode 100644 index 0000000..81089ee --- /dev/null +++ b/.github/workflows/pr.yaml @@ -0,0 +1,24 @@ +name: CI + +on: + pull_request: + branches: [ master ] + +jobs: + build_linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 1 + + - name: Install dependencies + run: | + sudo apt update + sudo apt install -y libsfml-dev + + - name: Build + run: | + mkdir build/ && cd build/ + cmake -DCMAKE_BUILD_TYPE=Debug .. + make -j4