File: build.yml

package info (click to toggle)
mdnsd 0.12-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 484 kB
  • sloc: ansic: 4,024; sh: 277; makefile: 107
file content (71 lines) | stat: -rw-r--r-- 1,897 bytes parent folder | download | duplicates (3)
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: Bob the Builder

# Run on all branches, including all pull requests, except the 'dev'
# branch since that's where we run Coverity Scan (limited tokens/day)
on:
  push:
    branches:
      - '**'
      - '!dev'
  pull_request:
    branches:
      - '**'

jobs:
  build:
    # Verify we can build on latest Ubuntu with both gcc and clang
    name: ${{ matrix.compiler }}
    runs-on: ubuntu-latest
    strategy:
      matrix:
        compiler: [gcc, clang]
      fail-fast: false
    env:
      MAKEFLAGS: -j3
      CC: ${{ matrix.compiler }}
    steps:
      - name: Install dependencies
        run: |
          sudo apt-get -y update
          sudo apt-get -y install tree doxygen libcmocka-dev
      - uses: actions/checkout@v3
      - name: Configure
        run: |
          ./autogen.sh
          ./configure --prefix= --disable-silent-rules --enable-tests
      - name: Build
        run: |
          make
      - name: Install to ~/tmp and Inspect
        run: |
          DESTDIR=~/tmp make install-strip
          tree ~/tmp
          LD_LIBRARY_PATH=~/tmp/lib ldd ~/tmp/sbin/mdnsd
          size ~/tmp/sbin/mdnsd
          size ~/tmp/lib/libmdnsd.so*
          LD_LIBRARY_PATH=~/tmp/lib ~/tmp/sbin/mdnsd -h
      - name: Test
        run: |
          make check || (cat test/test-suite.log; false)
      - name: Upload Test Results
        uses: actions/upload-artifact@v3
        with:
          name: mdnsd-test-${{ matrix.compiler }}
          path: test/*
  distcheck:
    runs-on: ubuntu-latest
    env:
      MAKEFLAGS: -j3
    steps:
      - name: Install dependencies
        run: |
          sudo apt-get -y update
          sudo apt-get -y install tree doxygen libcmocka-dev
      - uses: actions/checkout@v3
      - name: Configure
        run: |
          ./autogen.sh
          ./configure --prefix=
      - name: Build & Check
        run: |
          make distcheck