forked from ghaerr/agg-2.6
-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (84 loc) · 2.98 KB
/
ci-cmake.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Cmake-ci
'on':
pull_request:
push:
branches:
- master
- dev*
- feature/**
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
MSVC:
runs-on: windows-2019
name: windows-2019
strategy:
fail-fast: false
matrix:
os: [windows-2019]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
- name: Conan detect
run: |
pip install "conan>=1.51.0,<2.0.0"
conan profile new --detect default
- name: Run conan
run: |
mkdir ${{github.workspace}}/build
conan install . --build=missing -pr:b=default -if ${{github.workspace}}/build
- name: Configure CMake
run: >-
cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}"
-DCMAKE_PREFIX_PATH:PATH=${{github.workspace}}/build/generators
-DCMAKE_MODULE_PATH:PATH=${{github.workspace}}/build/generators
-Dagg_BUILD_CONTROLS:BOOL=ON
-Dagg_BUILD_DEMO:BOOL=ON
-Dagg_BUILD_EXAMPLES:BOOL=ON
-Dagg_BUILD_PLATFORM:BOOL=ON
-Dagg_USE_AGG2D:BOOL=ON
-Dagg_USE_AGG2D_FREETYPE:BOOL=ON
-Dagg_USE_FREETYPE:BOOL=ON
-Dagg_USE_GPC:BOOL=ON
-B "${{github.workspace}}/build" .
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
GCC:
runs-on: ubuntu-22.04
name: ubuntu-22.04
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y gcc g++ cmake wget git libsdl1.2-dev libfreetype-dev libexpat1-dev
- name: Configure CMake
run: >-
cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}"
-Dagg_BUILD_CONTROLS:BOOL=ON
-Dagg_BUILD_DEMO:BOOL=ON
-Dagg_BUILD_EXAMPLES:BOOL=ON
-Dagg_BUILD_PLATFORM:BOOL=ON
-Dagg_USE_AGG2D:BOOL=ON
-Dagg_USE_AGG2D_FREETYPE:BOOL=ON
-Dagg_USE_EXPAT:BOOL=ON
-Dagg_USE_FREETYPE:BOOL=ON
-Dagg_USE_GPC:BOOL=ON
-Dagg_USE_SDL_PLATFORM:BOOL=ON
-B "${{github.workspace}}/build" .
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}