Browse Source

Merge pull request #11 from kolumb/8

(#8) Copy CI from tsoding/something repo
Alexey Kutepov 5 years ago
parent
commit
b6583ddd93
2 changed files with 44 additions and 0 deletions
  1. 42 0
      .github/workflows/ci.yml
  2. 2 0
      README.md

+ 42 - 0
.github/workflows/ci.yml

@@ -0,0 +1,42 @@
+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
+  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
+  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
+  # TODO(#14): there is no build for Windows

+ 2 - 0
README.md

@@ -1,3 +1,5 @@
+[![Build Status](https://github.com/tsoding/sowon/workflows/CI/badge.svg)](https://github.com/tsoding/sowon/actions)
+
 # Sowon
 # Sowon
 
 
 ![demo](./demo.gif)
 ![demo](./demo.gif)