From 86e8cf574f756cfd6bc88b098657c0778915066e Mon Sep 17 00:00:00 2001 From: Danil Kolumbet Date: Sat, 17 Oct 2020 20:26:52 +0300 Subject: [PATCH 1/4] (tsoding#8) Copy CI from tsoding/something repo --- .github/workflows/ci.yml | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f4ad5c3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,45 @@ +name: CI +on: [push, pull_request] + +jobs: + build-linux-gcc: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v1 + - name: install dependencies + run: | + sudo apt-get update + sudo apt-get install -qq libsdl2-dev + - name: build the game + run: | + make + env: + CC: gcc + CXX: g++ + build-linux-clang: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v1 + - name: install dependencies + run: | + sudo apt-get update + sudo apt-get install -qq libsdl2-dev + - name: build the game + run: | + make + env: + CC: clang + CXX: clang++ + build-macos: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v1 + - name: install dependencies + run: brew install sdl2 pkg-config + - name: build the game + run: | + make + env: + CC: clang + CXX: clang++ + # TODO: there is no build for Windows From 20981d19276e6fd5fd5ef2b11e60dfdfd2e2077b Mon Sep 17 00:00:00 2001 From: Danil Kolumbet Date: Sun, 18 Oct 2020 05:27:52 +0300 Subject: [PATCH 2/4] Add CI badge to README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 67dc9bb..82560d4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://github.com/tsoding/sowon/workflows/CI/badge.svg)](https://github.com/tsoding/sowon/actions) + # Sowon ![demo](./demo.gif) From b51eecb6258c04a4a41b56ab9593c7a17e49bf9f Mon Sep 17 00:00:00 2001 From: Danil Kolumbet Date: Sun, 18 Oct 2020 06:39:45 +0300 Subject: [PATCH 3/4] (tsoding#8) Remove CXX env from CI --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4ad5c3..6578704 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,6 @@ jobs: make env: CC: gcc - CXX: g++ build-linux-clang: runs-on: ubuntu-18.04 steps: @@ -29,7 +28,6 @@ jobs: make env: CC: clang - CXX: clang++ build-macos: runs-on: macOS-latest steps: @@ -41,5 +39,4 @@ jobs: make env: CC: clang - CXX: clang++ # TODO: there is no build for Windows From 33f76d536a5038644ff87d814c4a49525ee7a986 Mon Sep 17 00:00:00 2001 From: rexim Date: Mon, 19 Oct 2020 19:10:43 +0700 Subject: [PATCH 4/4] Add TODO(#14) --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6578704..4b322eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,4 +39,4 @@ jobs: make env: CC: clang - # TODO: there is no build for Windows + # TODO(#14): there is no build for Windows