Workflow fixes for macOS
This commit is contained in:
parent
509786cbf1
commit
ff37d11610
101
.github/workflows/build.yml
vendored
101
.github/workflows/build.yml
vendored
@ -151,54 +151,99 @@ jobs:
|
|||||||
run: meson test -C output/mini
|
run: meson test -C output/mini
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
runs-on: macos-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
compiler: [clang]
|
||||||
|
include:
|
||||||
|
- compiler: clang
|
||||||
|
os: macos-latest
|
||||||
|
cc: clang
|
||||||
|
cxx: clang++
|
||||||
|
brew_packages: >
|
||||||
|
meson ninja
|
||||||
|
ccache
|
||||||
|
fmt
|
||||||
|
googletest
|
||||||
|
icu4c
|
||||||
|
ffmpeg
|
||||||
|
libnfs
|
||||||
|
libupnp
|
||||||
|
libid3tag
|
||||||
|
chromaprint
|
||||||
|
libsamplerate
|
||||||
|
libsoxr
|
||||||
|
flac
|
||||||
|
opus
|
||||||
|
libvorbis
|
||||||
|
faad2
|
||||||
|
wavpack
|
||||||
|
libmpdclient
|
||||||
|
meson_options: --force-fallback-for=fmt,gtest
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
env:
|
||||||
|
CC: ccache ${{ matrix.cc }}
|
||||||
|
CXX: ccache ${{ matrix.cxx }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- id: checkout
|
- id: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: 3.x
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
brew update
|
||||||
brew install \
|
brew install \
|
||||||
meson ninja \
|
${{ matrix.brew_packages }}
|
||||||
ccache \
|
|
||||||
fmt \
|
|
||||||
googletest \
|
|
||||||
icu4c \
|
|
||||||
ffmpeg \
|
|
||||||
libnfs \
|
|
||||||
libupnp \
|
|
||||||
libid3tag \
|
|
||||||
chromaprint \
|
|
||||||
libsamplerate \
|
|
||||||
libsoxr \
|
|
||||||
flac \
|
|
||||||
opus \
|
|
||||||
libvorbis \
|
|
||||||
faad2 \
|
|
||||||
wavpack \
|
|
||||||
libmpdclient
|
|
||||||
|
|
||||||
- id: cache-ccache
|
- id: cache-ccache
|
||||||
uses: hendrikmuhs/ccache-action@v1
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
with:
|
with:
|
||||||
key: macos
|
key: ${{ matrix.compiler }}
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
meson setup \
|
meson setup \
|
||||||
-Ddocumentation=disabled \
|
-Ddocumentation=disabled \
|
||||||
-Dtest=true \
|
-Dtest=true \
|
||||||
output
|
-Dpcre=enabled \
|
||||||
|
|
||||||
|
--wrap-mode nofallback \
|
||||||
|
${{ matrix.meson_options }} \
|
||||||
|
output/full
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: meson compile -C output --verbose
|
run: meson compile -C output/full --verbose
|
||||||
|
|
||||||
- name: Unit Tests
|
- name: Unit Tests
|
||||||
run: meson test -C output
|
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 \
|
||||||
|
--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
|
||||||
|
|
||||||
build-msys2:
|
build-msys2:
|
||||||
strategy:
|
strategy:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user