-
Notifications
You must be signed in to change notification settings - Fork 213
55 lines (48 loc) · 1.25 KB
/
build.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
name: Build
on:
push:
pull_request:
jobs:
ubuntu:
strategy:
fail-fast: false
matrix:
buildType: [RelWithDebInfo, Debug]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
with:
submodules: recursive
- name: update
run: sudo apt-get update
- name: install deps
run: sudo apt install -y ninja-build libmariadb-dev zlib1g-dev mariadb-server
- name: cmake
run: |
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.buildType }}
- name: build sapphire
run: cd build && ninja
windows:
strategy:
fail-fast: false
matrix:
buildType: [RelWithDebInfo, Debug]
runs-on: windows-2019
steps:
- uses: actions/checkout@v3.3.0
with:
submodules: recursive
- name: Enable Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1.10.0
- name: install deps
run: |
choco install --no-progress mariadb ninja
- name: cmake init
run: |
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.buildType }} -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl
- name: build sapphire
run: cd build && ninja