Skip to content

Commit 3cc7ab1

Browse files
authored
Merge pull request #1 from assertivist/github-actions-setup
Build with github actions
2 parents 0f1eb98 + 4ec8234 commit 3cc7ab1

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

c-cpp.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
Ubuntu:
11+
name: Ubuntu Latest
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: install dependencies
15+
run: |
16+
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
17+
sudo apt-get update -y -qq
18+
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libegl1-mesa-dev libgles2-mesa-dev libsdl2-net-dev
19+
- uses: actions/checkout@v2
20+
- name: make
21+
run: make -j
22+
- name: make tests
23+
run: make tests
24+
- name: run tests
25+
run: build/tests
26+
Windows:
27+
name: Windows
28+
runs-on: windows-2020
29+
steps:
30+
- name: Setup MSYS2
31+
uses: msys2/setup-msys2@v2
32+
with:
33+
install: zip mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_net mingw-w64-x86_64-clang mingw-w64-x86_64-glbinding mingw-w64-x86_64-glew make
34+
- uses: actions/checkout@v2
35+
- name: make
36+
run: make -j
37+
- name: make tests
38+
run: make tests
39+
- name: run tests
40+
run: build/tests
41+
macOS:
42+
name: macOS
43+
runs-on: macOS-latest
44+
steps:
45+
- name: install dependencies
46+
run: |
47+
wget -q "https://www.libsdl.org/projects/SDL_net/release/SDL2_net-2.0.1.dmg"
48+
hdiutil attach SDL2_net-2.0.1.dmg
49+
sudo cp -R /Volumes/SDL2_net/SDL2_net.framework /Library/Frameworks/
50+
wget -q "http://libsdl.org/release/SDL2-2.0.12.dmg"
51+
hdiutil attach SDL2-2.0.12.dmg
52+
sudo cp -R /Volumes/SDL2/SDL2.framework /Library/Frameworks/
53+
- name: make
54+
run: make -j macapp SIGNING_ID=NONE
55+
- name: make tests
56+
run: make tests
57+
- name: run tests
58+
run: build/tests

0 commit comments

Comments
 (0)