|
@@ -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
|