File: build.yml

package info (click to toggle)
libhinoko 1.0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 544 kB
  • sloc: ansic: 2,557; python: 693; makefile: 9; javascript: 5
file content (113 lines) | stat: -rw-r--r-- 3,395 bytes parent folder | download | duplicates (2)
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Build test

on: [push, pull_request]

jobs:
  build_in_fedora_amd64_on_docker:
    runs-on: ubuntu-latest
    container:
      image: fedora:rawhide
    steps:
    - 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: Checkout repository.
      uses: actions/checkout@v4
    - name: Create gi-docgen.wrap in subproject directory
      run: |
        mkdir subprojects
        cat > subprojects/gi-docgen.wrap << EOF
        [wrap-git]
        directory = gi-docgen
        url = https://gitlab.gnome.org/GNOME/gi-docgen.git
        revision = 2023.1
        depth = 1
        
        [provide]
        program_names = gi-docgen
        EOF
    - name: Create hinawa.wrap in subproject directory
      run: |
        cat > subprojects/hinawa.wrap << EOF
        [wrap-git]
        directory = libhinawa
        url = https://git.kernel.org/pub/scm/libs/ieee1394/libhinawa.git
        revision = 4.0.0
        depth = 1
        
        [provide]
        dependency_names = hinawa
        EOF
    - name: Initialization for build.
      run: |
        meson --prefix=/tmp. -Ddoc=true -Dwarning_level=3 . build
    - name: Display configuration.
      run: |
        meson configure build
    - name: Build library.
      run: |
        meson compile -C build
    - name: Test interfaces exposed by g-i.
      run: |
        meson test -C build
    - name: Test install.
      run: |
        meson install -C build

  build_in_ubuntu_amd64_on_docker:
    runs-on: ubuntu-latest
    container:
      image: ubuntu:latest
    steps:
    - 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: Checkout repository.
      uses: actions/checkout@v4
    - name: Create gi-docgen.wrap in subproject directory
      run: |
        mkdir subprojects
        cat > subprojects/gi-docgen.wrap << EOF
        [wrap-git]
        directory = gi-docgen
        url = https://gitlab.gnome.org/GNOME/gi-docgen.git
        revision = 2023.1
        depth = 1
        
        [provide]
        program_names = gi-docgen
        EOF
    - name: Create hinawa.wrap in subproject directory
      run: |
        cat > subprojects/hinawa.wrap << EOF
        [wrap-git]
        directory = libhinawa
        url = https://git.kernel.org/pub/scm/libs/ieee1394/libhinawa.git
        revision = 4.0.0
        depth = 1
        
        [provide]
        dependency_names = hinawa
        EOF
    - name: Initialization for build.
      run: |
        meson --prefix=/tmp. -Ddoc=true -Dwarning_level=3 . build
    - name: Display configuration.
      run: |
        meson configure build
    - name: Build library.
      run: |
        meson compile -C build
    - name: Test interfaces exposed by g-i.
      run: |
        meson test -C build
    - name: Test install.
      run: |
        meson install -C build