forked from microsoft/arcana.cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
127 lines (105 loc) · 2.94 KB
/
ci.yml
File metadata and controls
127 lines (105 loc) · 2.94 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
windows:
name: Windows
runs-on: windows-latest
strategy:
matrix:
config: [Debug, Release]
arch: [x64, Win32]
steps:
- uses: actions/checkout@v4
- name: Configure CMake
run: |
cmake -B Build -A ${{matrix.arch}}
- name: Build
run: |
cmake --build Build --config ${{matrix.config}}
- name: Test
working-directory: Build
run: |
ctest -C ${{matrix.config}} --output-on-failure --verbose
macos:
name: macOS
runs-on: macos-latest
strategy:
matrix:
config: [Debug, Release]
steps:
- uses: actions/checkout@v4
# Tests are disabled until we can fix the build errors.
- name: Configure CMake
run: |
cmake -B Build -G Xcode -D ARCANA_TESTS=OFF
- name: Build
run: |
cmake --build Build --config ${{matrix.config}}
# - name: Test
# working-directory: Build
# run: |
# ctest -C ${{matrix.config}} --output-on-failure --verbose
ios:
name: iOS
runs-on: macos-latest
strategy:
matrix:
config: [Debug, Release]
platform: [iphoneos, iphonesimulator]
steps:
- uses: actions/checkout@v4
# Tests are disabled until we can fix the build errors and figure out how to run them on the simulator.
- name: Configure CMake for iOS
run: |
cmake -B Build -G Xcode \
-D CMAKE_SYSTEM_NAME=iOS \
-D CMAKE_OSX_DEPLOYMENT_TARGET=12.0 \
-D CMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH=NO \
-D CMAKE_IOS_INSTALL_COMBINED=YES \
-D ARCANA_TESTS=OFF
- name: Build
run: |
cmake --build Build --config ${{matrix.config}}
# - name: Test
# working-directory: Build
# run: |
# ctest -C ${{matrix.config}} --output-on-failure --verbose
linux:
name: Linux
runs-on: ubuntu-latest
strategy:
matrix:
config: [Debug, Release]
compiler: [gcc-11, clang-14]
include:
- compiler: gcc-11
cc: gcc-11
cxx: g++-11
- compiler: clang-14
cc: clang-14
cxx: clang++-14
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y ${{matrix.cc }} ${{ matrix.cxx}}
# Tests are disabled until we can fix the build errors.
- name: Configure CMake
run: |
cmake -B Build \
-D CMAKE_BUILD_TYPE=${{matrix.config}} \
-D CMAKE_C_COMPILER=${{matrix.cc}} \
-D CMAKE_CXX_COMPILER=${{matrix.cxx}} \
-D ARCANA_TESTS=OFF
- name: Build
run: |
cmake --build Build --config ${{matrix.config}}
# - name: Test
# working-directory: Build
# run: |
# ctest -C ${{matrix.config}} --output-on-failure --verbose