-
Notifications
You must be signed in to change notification settings - Fork 58
57 lines (54 loc) · 1.5 KB
/
macos_fltk.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
name: CI macOS (FLTK)
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: macos-latest
steps:
- name: Get dependencies
run: brew install clang-format
- name: Get sources
uses: actions/checkout@v2
- name: Get FLTK
uses: actions/checkout@v2
with:
repository: fltk/fltk
path: fltk
- name: Get newt64
uses: actions/checkout@v2
with:
repository: MatthiasWM/NEWT64
path: newt64
- name: Compile FLTK
run: |
cmake -S fltk -B fltk/build \
-D OPTION_USE_SYSTEM_LIBJPEG=Off \
-D OPTION_USE_SYSTEM_ZLIB=Off \
-D OPTION_USE_SYSTEM_LIBPNG=Off \
-D FLTK_BUILD_TEST=Off \
-D OPTION_USE_GL=Off
cmake --build fltk/build
sudo cmake --install fltk/build
- name: Compile newt64
run: |
cmake -S newt64 -B newt64/build
cmake --build newt64/build
sudo cmake --install newt64/build
- name: Configure Einstein
run: |
cmake -S . -B _Build_/Makefiles
- name: Check format
run: |
cmake --build _Build_/Makefiles --target clang-format-check
- name: Compile Einstein
run: |
cmake --build _Build_/Makefiles
- name: Run tests
run: |
_Build_/Makefiles/EinsteinTests