-
Notifications
You must be signed in to change notification settings - Fork 111
51 lines (45 loc) · 1.12 KB
/
Copy pathruntime.yml
File metadata and controls
51 lines (45 loc) · 1.12 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
name: Runtime Build
on:
workflow_dispatch:
pull_request:
paths:
- "runtime/**"
- ".github/workflows/runtime.yml"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Build runtime
run: |
cmake -B build -G Ninja -S runtime -DBUILD_TESTING=ON
cmake --build build --parallel
build-windows:
name: build (windows-latest)
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: false
cache: true
install: >-
mingw-w64-x86_64-cmake
mingw-w64-x86_64-gcc
mingw-w64-x86_64-ninja
- name: Build runtime
run: |
cmake --version
gcc --version
cmake -S runtime -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF
cmake --build build --parallel