Skip to content

Commit e315813

Browse files
committed
[build] replace cmake workflow with meson workflow
1 parent 849229a commit e315813

2 files changed

Lines changed: 41 additions & 37 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/meson.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Meson
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, windows-latest, macos-latest]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
with:
19+
submodules: recursive
20+
21+
- name: Install Meson
22+
run: pip install meson
23+
24+
- name: Install Ninja
25+
run: |
26+
if [ "$RUNNER_OS" == "Linux" ]; then
27+
sudo apt-get update && sudo apt-get install -y ninja-build
28+
elif [ "$RUNNER_OS" == "macOS" ]; then
29+
brew install ninja
30+
elif [ "$RUNNER_OS" == "Windows" ]; then
31+
choco install ninja
32+
fi
33+
34+
- name: Configure
35+
run: meson setup build -Dbuildtype=release
36+
37+
- name: Build
38+
run: meson compile -C build
39+
40+
- name: Test
41+
run: meson test -C build

0 commit comments

Comments
 (0)