This repository was archived by the owner on Jul 31, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (71 loc) · 1.9 KB
/
ci.yaml
File metadata and controls
74 lines (71 loc) · 1.9 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
on:
push: {}
pull_request: {}
jobs:
ubuntu:
runs-on: ${{matrix.os}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: "Build CI"
run: |
cd $GITHUB_WORKSPACE
./ci/build_linux.sh
strategy:
matrix:
include:
- os: ubuntu-20.04
- os: ubuntu-18.04
windows:
runs-on: "${{ matrix.OS }}"
env:
VCVARS_PATH: ${{matrix.VCVARS_PATH}}
BUILDING_SYNTHIZER: "1"
CI_WINDOWS: "1"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure MSVC Environment Variables
shell: cmd
run: |
call "%VCVARS_PATH%"
set > %GITHUB_ENV%
- name: install ninja
shell: powershell
run: |
choco install ninja
- name: Init submodules
shell: cmd
run: |
git submodule update --init --recursive
- name: Build C Libraries
shell: powershell
run: |
set-location $Env:GITHUB_WORKSPACE
./ci/build_c.ps1
strategy:
fail-fast: true
matrix:
include:
- VCVARS_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\enterprise\VC\Auxiliary\Build\vcvars32.bat
OS: windows-2019
- VCVARS_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\enterprise\VC\Auxiliary\Build\vcvars64.bat
OS: windows-2019
- VCVARS_PATH: C:\Program Files\Microsoft Visual Studio\2022\enterprise\VC\Auxiliary\Build\vcvars64.bat
OS: windows-2022
osx:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- shell: bash
run: |
set -ex
brew install ninja
git submodule update --init --recursive
cd $GITHUB_WORKSPACE
mkdir build
cd build
cmake -G Ninja ..
ninja
ninja test