-
Notifications
You must be signed in to change notification settings - Fork 63
68 lines (61 loc) · 1.6 KB
/
ci.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
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Build
on:
push:
branches: [ master ]
tags: [ "*" ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
env:
MATRIX_OS: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Python Dependencies
run: pip install --upgrade meson ninja
- if: matrix.os == 'ubuntu-latest'
name: Install dependencies on Ubuntu
run: |
sudo apt-get update || true
sudo apt-get install -y gtk-doc-tools
- name: MSVC Setup
if: matrix.os == 'windows-latest'
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: Meson Setup
run: meson setup build $(test $MATRIX_OS = "ubuntu-latest" && echo "-Ddocs=true")
- name: Build
run: ninja -C build
- name: Test
run: ninja -C build test
- name: Deploy documentation
if: matrix.os == 'ubuntu-latest'
run: .ci/deploy-docs.sh
build-sheenbidi:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Python Dependencies
run: pip install --upgrade meson ninja
- name: Meson Setup
run: meson -Dsheenbidi=true build
- name: Build
run: ninja -C build
- name: Test
run: ninja -C build test