From c6e2b1237c441af65a9631d285d3dc6ed6a3647f Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 14 Nov 2019 13:40:06 -0500 Subject: [PATCH 1/6] Add build workflow --- .github/workflows/ccpp.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/ccpp.yml diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml new file mode 100644 index 000000000..439775f22 --- /dev/null +++ b/.github/workflows/ccpp.yml @@ -0,0 +1,22 @@ +name: C/C++ CI + +on: + push: + branches: + - master + + pull_request: + branches: + - master + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: install dependencies + run: apt-get install libsdl2-dev scons + - name: make + run: cd OSBindings/SDL; scons From 40e1ec28fbd83961f4aea2f8c436e395815593a9 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 14 Nov 2019 13:42:56 -0500 Subject: [PATCH 2/6] Attempt sudo. Sorry for the noise; there's no obvious better way to test this stuff. --- .github/workflows/ccpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 439775f22..a44940549 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -17,6 +17,6 @@ jobs: steps: - uses: actions/checkout@v1 - name: install dependencies - run: apt-get install libsdl2-dev scons + run: sudo apt-get install libsdl2-dev scons - name: make run: cd OSBindings/SDL; scons From aee2890b252cbbe48d4cce54696ff9324a8d6508 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 14 Nov 2019 13:50:03 -0500 Subject: [PATCH 3/6] Switch to title case. This seems to fit better with the fixed named steps. --- .github/workflows/ccpp.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index a44940549..03cadf23d 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@v1 - - name: install dependencies + - name: Install dependencies run: sudo apt-get install libsdl2-dev scons - - name: make + - name: Make run: cd OSBindings/SDL; scons From fa900d22e817565b785b6d40165c0087e79dbe07 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 14 Nov 2019 13:52:24 -0500 Subject: [PATCH 4/6] Adds a more manageable title. --- .github/workflows/ccpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 03cadf23d..c806b1908 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -1,4 +1,4 @@ -name: C/C++ CI +name: Build: SDL/Ubuntu on: push: From 04c4f5f3217e19e1cf326298e1bef27608ca8f67 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 14 Nov 2019 13:53:24 -0500 Subject: [PATCH 5/6] Removes syntax violating colon. --- .github/workflows/ccpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index c806b1908..5aa62d177 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -1,4 +1,4 @@ -name: Build: SDL/Ubuntu +name: Build SDL/Ubuntu on: push: From 3d4d45ef6280a90a14225768077eb99261bb5e7d Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 14 Nov 2019 13:54:24 -0500 Subject: [PATCH 6/6] Remove redundant 'build' --- .github/workflows/ccpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 5aa62d177..6ef2a15f8 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -1,4 +1,4 @@ -name: Build SDL/Ubuntu +name: SDL/Ubuntu on: push: