.github/workflows/build.yml: run Meson manually without BSFishy/meson-build
This eliminates the options duplication in the "build" and "tests" steps.
This commit is contained in:
parent
122d71a05d
commit
d9fefbbc5a
84
.github/workflows/build.yml
vendored
84
.github/workflows/build.yml
vendored
@ -59,6 +59,7 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y --no-install-recommends \
|
sudo apt-get install -y --no-install-recommends \
|
||||||
${{ matrix.cxx }} ${{matrix.cc }} \
|
${{ matrix.cxx }} ${{matrix.cc }} \
|
||||||
|
meson \
|
||||||
ccache \
|
ccache \
|
||||||
libgtest-dev \
|
libgtest-dev \
|
||||||
libpcre2-dev \
|
libpcre2-dev \
|
||||||
@ -94,32 +95,46 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
key: ${{ matrix.compiler }}
|
key: ${{ matrix.compiler }}
|
||||||
|
|
||||||
- name: Full Build
|
- name: Configure
|
||||||
uses: BSFishy/meson-build@v1.0.3
|
run: |
|
||||||
with:
|
meson setup \
|
||||||
action: build
|
-Ddocumentation=disabled \
|
||||||
directory: output/full
|
-Dtest=true \
|
||||||
setup-options: -Ddocumentation=disabled -Dtest=true -Dsystemd=enabled -Dpcre=enabled --force-fallback-for=fmt
|
-Dsystemd=enabled
|
||||||
options: --verbose
|
-Dpcre=enabled \
|
||||||
meson-version: 0.56.0
|
--force-fallback-for=fmt
|
||||||
|
output/full
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: meson compile -C output/full --verbose
|
||||||
|
|
||||||
- name: Unit Tests
|
- name: Unit Tests
|
||||||
uses: BSFishy/meson-build@v1.0.3
|
run: meson test -C output/full
|
||||||
with:
|
|
||||||
action: test
|
|
||||||
directory: output/full
|
|
||||||
setup-options: -Ddocumentation=disabled -Dtest=true -Dsystemd=enabled -Dpcre=enabled --force-fallback-for=fmt
|
|
||||||
options: --verbose
|
|
||||||
meson-version: 0.56.0
|
|
||||||
|
|
||||||
- name: Mini Build
|
- name: Configure Mini
|
||||||
uses: BSFishy/meson-build@v1.0.3
|
run: |
|
||||||
with:
|
meson setup \
|
||||||
action: build
|
-Dbuildtype=minsize \
|
||||||
directory: output/mini
|
-Dauto_features=disabled \
|
||||||
setup-options: -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 --force-fallback-for=fmt
|
-Dtest=true \
|
||||||
options: --verbose
|
-Ddaemon=false \
|
||||||
meson-version: 0.56.0
|
-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 \
|
||||||
|
output/mini
|
||||||
|
|
||||||
|
- name: Build Mini
|
||||||
|
run: meson compile -C output/mini --verbose
|
||||||
|
|
||||||
|
- name: Unit Tests Mini
|
||||||
|
run: meson test -C output/mini
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
@ -158,23 +173,18 @@ jobs:
|
|||||||
wavpack \
|
wavpack \
|
||||||
libmpdclient
|
libmpdclient
|
||||||
|
|
||||||
|
- name: Configure
|
||||||
|
run: |
|
||||||
|
meson setup \
|
||||||
|
-Ddocumentation=disabled \
|
||||||
|
-Dtest=true \
|
||||||
|
output
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: BSFishy/meson-build@v1.0.3
|
run: meson compile -C output --verbose
|
||||||
with:
|
|
||||||
action: build
|
|
||||||
directory: output
|
|
||||||
setup-options: -Ddocumentation=disabled -Dtest=true
|
|
||||||
options: --verbose
|
|
||||||
meson-version: 0.56.0
|
|
||||||
|
|
||||||
- name: Unit Tests
|
- name: Unit Tests
|
||||||
uses: BSFishy/meson-build@v1.0.3
|
run: meson test -C output
|
||||||
with:
|
|
||||||
action: test
|
|
||||||
directory: output
|
|
||||||
setup-options: -Ddocumentation=disabled -Dtest=true
|
|
||||||
options: --verbose
|
|
||||||
meson-version: 0.56.0
|
|
||||||
|
|
||||||
build-msys2:
|
build-msys2:
|
||||||
strategy:
|
strategy:
|
||||||
|
Loading…
Reference in New Issue
Block a user