-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (45 loc) · 1.33 KB
/
build_on_push.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
name: build_on_push
on: [push]
env:
BUILD_TYPE: Release
jobs:
#---------------------------------------------------------------------
# MacOS CI
build_MacOS:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install dependencies
run: brew install SDL2
- name: Prepare build
run: cmake -E make_directory ${{github.workspace}}/build_mac
- name: Configure build
working-directory: ${{github.workspace}}/build_mac
shell: bash
run: cmake ..
- name: Build
working-directory: ${{github.workspace}}/build_mac
shell: bash
run: make
#---------------------------------------------------------------------
# Linux CI
build_Linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install dependencies
run: sudo apt-get install libsdl2-dev
- name: Prepare build
run: cmake -E make_directory ${{github.workspace}}/build_linux
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build_linux
run: export SDL2_DIR=${{github.workspace}}/.github/workflows; cmake ..
- name: Build
working-directory: ${{github.workspace}}/build_linux
shell: bash
run: make