-
Notifications
You must be signed in to change notification settings - Fork 78
81 lines (69 loc) · 1.93 KB
/
build_examples.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
name: Build Examples
on:
push:
branches: [ "main" ]
paths-ignore: [ '**.md', "tests/**" ]
pull_request:
branches: [ "main" ]
paths-ignore: [ '**.md', "tests/**" ]
jobs:
build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Android NDK
id: setup-ndk
uses: nttld/setup-ndk@v1
with:
ndk-version: r25c
add-to-path: false
- name: Configure CMake
env:
ANDROID_NDK_HOME: ${{steps.setup-ndk.outputs.ndk-path}}
run: >
cmake
-D GLFM_BUILD_EXAMPLES=ON
-D CMAKE_TOOLCHAIN_FILE=${{env.ANDROID_NDK_HOME}}/build/cmake/android.toolchain.cmake
-D CMAKE_C_FLAGS=-Werror=deprecated-declarations
-D CMAKE_VERBOSE_MAKEFILE=ON
-B build/android_examples
- name: Build
run: cmake --build build/android_examples
build-apple:
strategy:
matrix:
sdk: [ appletvos, iphoneos, macosx ]
runs-on: macos-latest
env:
CFLAGS: -Werror=deprecated-declarations
steps:
- uses: actions/checkout@v3
- name: Configure CMake
run: >
cmake
-D GLFM_BUILD_EXAMPLES=ON
-D CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY=""
-D CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED=NO
-B build/apple_examples
-G Xcode
- name: Build
run: cmake --build build/apple_examples -- -sdk ${{ matrix.sdk }}
build-emscripten:
runs-on: ubuntu-latest
env:
CFLAGS: -Werror=deprecated-declarations
steps:
- uses: actions/checkout@v3
- name: Setup Emscripten SDK
uses: mymindstorm/setup-emsdk@v12
with:
version: 3.1.35
actions-cache-folder: 'emsdk-cache'
- name: Configure CMake
run: >
emcmake cmake
-D GLFM_BUILD_EXAMPLES=ON
-D CMAKE_VERBOSE_MAKEFILE=ON
-B build/emscripten_examples
- name: Build
run: cmake --build build/emscripten_examples