-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github/workflows/build.yml: run Meson manually without BSFishy/meson…
…-build This eliminates the options duplication in the "build" and "tests" steps.
- Loading branch information
1 parent
122d71a
commit d9fefbb
Showing
1 changed file
with
48 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,7 @@ jobs: | |
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends \ | ||
${{ matrix.cxx }} ${{matrix.cc }} \ | ||
meson \ | ||
ccache \ | ||
libgtest-dev \ | ||
libpcre2-dev \ | ||
|
@@ -94,32 +95,46 @@ jobs: | |
with: | ||
key: ${{ matrix.compiler }} | ||
|
||
- name: Full Build | ||
uses: BSFishy/[email protected] | ||
with: | ||
action: build | ||
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: Configure | ||
run: | | ||
meson setup \ | ||
-Ddocumentation=disabled \ | ||
-Dtest=true \ | ||
-Dsystemd=enabled | ||
-Dpcre=enabled \ | ||
--force-fallback-for=fmt | ||
output/full | ||
- name: Build | ||
run: meson compile -C output/full --verbose | ||
|
||
- name: Unit Tests | ||
uses: BSFishy/[email protected] | ||
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 | ||
uses: BSFishy/[email protected] | ||
with: | ||
action: build | ||
directory: output/mini | ||
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 | ||
options: --verbose | ||
meson-version: 0.56.0 | ||
run: meson test -C output/full | ||
|
||
- 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 \ | ||
output/mini | ||
- name: Build Mini | ||
run: meson compile -C output/mini --verbose | ||
|
||
- name: Unit Tests Mini | ||
run: meson test -C output/mini | ||
|
||
build-macos: | ||
runs-on: macos-latest | ||
|
@@ -158,23 +173,18 @@ jobs: | |
wavpack \ | ||
libmpdclient | ||
- name: Configure | ||
run: | | ||
meson setup \ | ||
-Ddocumentation=disabled \ | ||
-Dtest=true \ | ||
output | ||
- name: Build | ||
uses: BSFishy/[email protected] | ||
with: | ||
action: build | ||
directory: output | ||
setup-options: -Ddocumentation=disabled -Dtest=true | ||
options: --verbose | ||
meson-version: 0.56.0 | ||
run: meson compile -C output --verbose | ||
|
||
- name: Unit Tests | ||
uses: BSFishy/[email protected] | ||
with: | ||
action: test | ||
directory: output | ||
setup-options: -Ddocumentation=disabled -Dtest=true | ||
options: --verbose | ||
meson-version: 0.56.0 | ||
run: meson test -C output | ||
|
||
build-msys2: | ||
strategy: | ||
|