File: build.yml

package info (click to toggle)
mpd 0.24.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,760 kB
  • sloc: cpp: 75,041; python: 1,408; xml: 628; perl: 469; java: 289; sh: 286; ansic: 235; makefile: 105
file content (340 lines) | stat: -rw-r--r-- 8,840 bytes parent folder | download
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
---
on:
  workflow_dispatch:
  push:
    paths-ignore:
      - 'AUTHORS'
      - 'COPYING'
      - 'LICENSES/**'
      - 'NEWS'
      - 'README.md'
      - 'android/**'
      - 'build/**'
      - 'doc/**'
      - 'python/**'
      - 'subprojects/**'
      - 'systemd/**'
      - 'win32/**'
    branches:
      - master
      - v0.24.x
  pull_request:
    paths-ignore:
      - 'AUTHORS'
      - 'COPYING'
      - 'LICENSES/**'
      - 'NEWS'
      - 'README.md'
      - 'android/**'
      - 'build/**'
      - 'doc/**'
      - 'python/**'
      - 'subprojects/**'
      - 'systemd/**'
      - 'win32/**'
    branches:
      - master
      - v0.24.x

permissions:
  contents: read #  to fetch code (actions/checkout)

jobs:
  build-linux:
    strategy:
      matrix:
        compiler: [gcc14, gcc12, clang]
        include:
          - compiler: gcc14
            os: ubuntu-24.04
            cc: gcc-14
            cxx: g++-14
            packages: g++-14
            meson_options:
          - compiler: gcc12
            os: ubuntu-24.04
            cc: gcc-12
            cxx: g++-12
            packages: g++-12
            meson_options:
          - compiler: clang
            os: ubuntu-24.04
            cc: clang
            cxx: clang++
            packages: clang
            meson_options: --force-fallback-for=fmt,gtest

    runs-on: ${{ matrix.os }}

    env:
      CC: ccache ${{ matrix.cc }}
      CXX: ccache ${{ matrix.cxx }}

    steps:
      - id: checkout
        uses: actions/checkout@v5

      - name: Install dependencies
        run: |
          sudo apt-get update
          sudo apt-get install -y --no-install-recommends \
            ${{ matrix.packages }} \
            meson \
            ccache \
            nlohmann-json3-dev \
            libfmt-dev \
            libgtest-dev \
            libpcre2-dev \
            libsystemd-dev libdbus-1-dev \
            libicu-dev \
            libcurl4-gnutls-dev \
            libpcre2-dev \
            libavahi-client-dev \
            libmad0-dev libmpg123-dev libid3tag0-dev \
            libflac-dev libvorbis-dev libopus-dev libogg-dev \
            libadplug-dev libaudiofile-dev libsndfile1-dev libfaad-dev \
            libfluidsynth-dev libgme-dev libmikmod-dev libmodplug-dev \
            libmpcdec-dev libwavpack-dev libwildmidi-dev \
            libsidplay2-dev libsidutils-dev libresid-builder-dev \
            libavcodec-dev libavformat-dev \
            libmp3lame-dev libtwolame-dev libshine-dev \
            libsamplerate0-dev libsoxr-dev \
            libbz2-dev libcdio-paranoia-dev libiso9660-dev libmms-dev \
            libzzip-dev \
            libexpat-dev \
            libasound2-dev libao-dev libjack-jackd2-dev libopenal-dev \
            libpulse-dev libshout3-dev \
            libsndio-dev \
            libmpdclient-dev \
            libnfs-dev \
            libupnp-dev \
            libsqlite3-dev \
            libchromaprint-dev \
            libgcrypt20-dev

      - id: cache-ccache
        uses: hendrikmuhs/ccache-action@v1.2
        with:
          key: ${{ matrix.os }}-${{ matrix.compiler }}

      - name: Configure
        run: |
          meson setup \
            -Ddocumentation=disabled \
            -Dtest=true \
            -Dsystemd=enabled \
            -Dpcre=enabled \
            --wrap-mode nofallback \
            ${{ matrix.meson_options }} \
            output/full

      - name: Build
        run: meson compile -C output/full --verbose

      - name: Unit Tests
        run: meson test -C output/full --print-errorlogs

      - name: Configure Mini
        run: |
          meson setup \
            -Dbuildtype=minsize \
            -Dauto_features=disabled \
            -Dtest=true \
            -Ddaemon=false \
            -Dinotify=false -Depoll=false -Deventfd=false \
            -Dsignalfd=false \
            -Dtcp=false \
            -Ddsd=false \
            -Ddatabase=false \
            -Dneighbor=false \
            -Dnlohmann_json=enabled \
            -Dcue=false \
            -Dfifo=false \
            -Dhttpd=false -Dpipe=false -Drecorder=false \
            -Dsnapcast=false \
            --wrap-mode nofallback \
            ${{ matrix.meson_options }} \
            output/mini

      - name: Build Mini
        run: meson compile -C output/mini --verbose

      - name: Unit Tests Mini
        run: meson test -C output/mini --print-errorlogs

  build-macos:
    strategy:
      matrix:
        compiler: [clang]
        include:
          - compiler: clang
            os: macos-latest
            cc: clang
            cxx: clang++
            brew_packages: >
              meson ninja
              pkgconf
              ccache
              expat
              fmt
              googletest
              pcre2
              icu4c
              ffmpeg
              libnfs
              libupnp
              libid3tag
              chromaprint
              libsamplerate
              libsoxr
              flac
              nlohmann-json
              opus
              libvorbis
              faad2
              sqlite
              wavpack
              libmpdclient
            meson_options: --force-fallback-for=fmt,gtest

    runs-on: ${{ matrix.os }}

    env:
      CC: ccache ${{ matrix.cc }}
      CXX: ccache ${{ matrix.cxx }}

    steps:
      - id: checkout
        uses: actions/checkout@v5

      - name: Install dependencies
        run: |
          brew update
          brew install \
            ${{ matrix.brew_packages }}

      - id: cache-ccache
        uses: hendrikmuhs/ccache-action@v1.2
        with:
          key: ${{ matrix.os }}-${{ matrix.compiler }}

      - name: Configure
        run: |
          meson setup \
            -Ddocumentation=disabled \
            -Dnlohmann_json=enabled \
            -Dtest=true \
            -Dpcre=enabled \
            --wrap-mode nofallback \
            ${{ matrix.meson_options }} \
            output/full

      - name: Build
        run: meson compile -C output/full --verbose

      - name: Unit Tests
        run: meson test -C output/full --print-errorlogs

      - name: Configure Mini
        run: |
          meson setup \
            -Dbuildtype=minsize \
            -Dauto_features=disabled \
            -Dtest=true \
            -Ddaemon=false \
            -Dinotify=false -Depoll=false -Deventfd=false \
            -Dsignalfd=false \
            -Dtcp=false \
            -Ddsd=false \
            -Ddatabase=false \
            -Dneighbor=false \
            -Dcue=false \
            -Dfifo=false \
            -Dhttpd=false -Dpipe=false -Drecorder=false \
            -Dsnapcast=false \
            --wrap-mode nofallback \
            ${{ matrix.meson_options }} \
            output/mini

      - name: Build Mini
        run: meson compile -C output/mini --verbose

      - name: Unit Tests Mini
        run: meson test -C output/mini --print-errorlogs

  build-msys2:
    strategy:
      matrix:
        platform: ['MINGW64', 'UCRT64']
    defaults:
      run:
        shell: msys2 {0}
    runs-on: windows-latest
    steps:
      - id: checkout
        uses: actions/checkout@v5

      - uses: msys2/setup-msys2@v2
        with:
          msystem: ${{matrix.platform}}
          pacboy: >-
            cc:p
            ccache:p
            cmake:p
            dbus:p
            faad2:p
            ffmpeg:p
            fmt:p
            flac:p
            gtest:p
            jack2:p
            libao:p
            libid3tag:p
            libmad:p
            libmpcdec:p
            libopenmpt:p
            libsamplerate:p
            libshout:p
            libsndfile:p
            libsoxr:p
            libvorbis:p
            meson:p
            nlohmann-json:p
            ninja:p
            opus:p
            pulseaudio:p
            shine:p
            twolame:p

      - id: cache-ccache
        uses: hendrikmuhs/ccache-action@v1.2
        with:
          key: ${{ matrix.platform }}

      - name: Configure
        run: |
          meson setup \
            -Dbzip2=disabled \
            -Dcdio_paranoia=disabled \
            -Dchromaprint=disabled \
            -Ddocumentation=disabled \
            -Dfluidsynth=disabled \
            -Dicu=disabled \
            -Diso9660=disabled \
            -Dmikmod=disabled \
            -Dmpg123=disabled \
            -Dnfs=disabled \
            -Dnlohmann_json=enabled \
            -Dsidplay=disabled \
            -Dudisks=disabled \
            -Dupnp=disabled \
            -Dwavpack=disabled \
            -Dzzip=disabled \
            -Dtest=true \
            "${{github.workspace}}/build"

      - name: Build
        run: meson compile -C "${{github.workspace}}/build" --verbose

      - name: Unit Tests
        run: meson test -C "${{github.workspace}}/build" --print-errorlogs