-
Notifications
You must be signed in to change notification settings - Fork 8
71 lines (68 loc) · 1.96 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build test
on: [push, pull_request]
jobs:
build_in_fedora_amd64_on_docker:
runs-on: ubuntu-latest
container:
image: fedora:rawhide
steps:
- name: Checkout repository.
uses: actions/checkout@v2
- name: Prepare build environment.
run: |
dnf -y upgrade
dnf -y install @development-tools
dnf -y install meson gobject-introspection-devel systemd-devel
dnf -y install gi-docgen python3-gobject
- name: Initialization for build.
run: |
meson --prefix=/tmp. -Ddoc=true -Dwarning_level=3 . build
- name: Display configuration.
run: |
cd build
meson configure
- name: Build library.
run: |
cd build
ninja
- name: Test interfaces exposed by g-i.
run: |
cd build
meson test
- name: Test install.
run: |
cd build
meson install
build_in_ubuntu_amd64_on_docker:
runs-on: ubuntu-latest
container:
image: ubuntu:latest
steps:
- name: Checkout repository.
uses: actions/checkout@v3
- name: Prepare build environment.
run: |
DEBIAN_FRONTEND=noninteractive apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y full-upgrade
DEBIAN_FRONTEND=noninteractive apt-get install -y git build-essential
DEBIAN_FRONTEND=noninteractive apt-get install -y meson ninja-build libglib2.0-dev gobject-introspection libgirepository1.0-dev
DEBIAN_FRONTEND=noninteractive apt-get install -y gi-docgen python3-gi
- name: Initialization for build.
run: |
meson --prefix=/tmp. -Ddoc=true -Dwarning_level=3 . build
- name: Display configuration.
run: |
cd build
meson configure
- name: Build library.
run: |
cd build
ninja
- name: Test interfaces exposed by g-i.
run: |
cd build
meson test
- name: Test install.
run: |
cd build
meson install