File: build.yml

package info (click to toggle)
linux-firewire-utils 0.5.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 276 kB
  • sloc: ansic: 4,134; sh: 109; makefile: 5
file content (54 lines) | stat: -rw-r--r-- 1,482 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
name: Build test

on: [push, pull_request]

jobs:
  build_in_fedora_amd64_on_docker:
    runs-on: ubuntu-latest
    container:
      image: fedora:latest
    steps:
    - name: Checkout repository.
      uses: actions/checkout@v4
    - name: Prepare build environment.
      run: |
        dnf -y upgrade
        dnf -y install @development-tools
        dnf -y install meson
    - name: Initialization for build.
      run: |
        meson setup --prefix=/tmp/installation -Dwarning_level=2 build
    - name: Display configuration.
      run: |
        meson configure build
    - name: Build library.
      run: |
        meson compile -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: Checkout repository.
      uses: actions/checkout@v4
    - 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 meson
    - name: Initialization for build.
      run: |
        meson setup --prefix=/tmp. -Dwarning_level=2 . build
    - name: Display configuration.
      run: |
        meson configure build
    - name: Build library.
      run: |
        meson compile -C build
    - name: Test install.
      run: |
        meson install -C build