From fc3a03a85656ba257ee6df32c7311a4f47406d47 Mon Sep 17 00:00:00 2001 From: Margen67 Date: Sun, 28 Jun 2020 18:55:15 -0700 Subject: [PATCH] ccpp.yml: Changes Build all branches. Delete whitespace. Use checkout v2. Change ; to &&. Use working-directory instead of cd. Add -j to speed up build. --- .github/workflows/ccpp.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 92e96470f..27e180a99 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -1,22 +1,16 @@ name: SDL/Ubuntu -on: - push: - branches: - - master - - pull_request: - branches: - - master +on: [push, pull_request] jobs: build: runs-on: ubuntu-latest - + steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Install dependencies - run: sudo apt-get --allow-releaseinfo-change update; sudo apt-get --fix-missing install libsdl2-dev scons + run: sudo apt-get --allow-releaseinfo-change update && sudo apt-get --fix-missing install libsdl2-dev scons - name: Make - run: cd OSBindings/SDL; scons + working-directory: OSBindings/SDL + run: scons -j$(nproc --all)