This repository has been archived by the owner on Mar 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
73 lines (72 loc) · 1.84 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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++
build-windows-msvc:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
# this runs vcvarsall for us, so we get the MSVC toolchain in PATH.
- uses: seanmiddleditch/gha-setup-vsdevenv@master
- name: download sdl2
run: |
curl -fsSL -o SDL2-devel-2.0.12-VC.zip https://www.libsdl.org/release/SDL2-devel-2.0.12-VC.zip
tar -xf SDL2-devel-2.0.12-VC.zip
mv SDL2-2.0.12 SDL2
- name: build the game
shell: cmd
run: |
./build_msvc.bat
build-freebsd:
runs-on: macos-latest
name: FreeBSD LLVM Clang build
steps:
- uses: actions/checkout@v2
- name: Build on FreeBSD
id: build
uses: vmactions/[email protected]
with:
usesh: true
prepare: pkg install -y sdl2 pkgconf gmake png
run: |
freebsd-version
gmake