.github/workflows/build.yml #91
Workflow file for this run
This file contains hidden or 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
| --- | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths-ignore: | |
| - 'build/**' | |
| - 'contrib/**' | |
| - 'doc/**' | |
| branches: | |
| - master | |
| pull_request: | |
| paths-ignore: | |
| - 'build/**' | |
| - 'contrib/**' | |
| - 'doc/**' | |
| branches: | |
| - master | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| iconv: [enabled, disabled] | |
| steps: | |
| - id: checkout | |
| uses: actions/checkout@v5 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt install -y --no-install-recommends \ | |
| meson \ | |
| ccache \ | |
| libmpdclient-dev \ | |
| check | |
| - id: cache-ccache | |
| uses: hendrikmuhs/ccache-action@v1 | |
| with: | |
| key: linux-iconv=${{ matrix.iconv }} | |
| - name: Configure | |
| run: | | |
| meson setup \ | |
| -Ddocumentation=disabled \ | |
| -Dtest=true \ | |
| -Diconv=${{ matrix.iconv }} \ | |
| --wrap-mode nofallback \ | |
| ${{ matrix.meson_options }} \ | |
| output | |
| - name: Build | |
| run: meson compile -C output --verbose | |
| - name: Unit Tests | |
| run: meson test -C output --print-errorlogs | |
| build-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - id: checkout | |
| uses: actions/checkout@v5 | |
| - id: cache-ccache | |
| uses: hendrikmuhs/ccache-action@v1 | |
| with: | |
| key: macos | |
| - uses: actions/setup-python@v6 | |
| - name: Install dependencies | |
| run: | | |
| brew install \ | |
| meson ninja \ | |
| libmpdclient \ | |
| check | |
| - name: Configure | |
| run: | | |
| meson setup \ | |
| -Ddocumentation=disabled \ | |
| -Dtest=true \ | |
| --wrap-mode nofallback \ | |
| ${{ matrix.meson_options }} \ | |
| output | |
| - name: Build | |
| run: meson compile -C output --verbose | |
| - name: Unit Tests | |
| run: meson test -C output --print-errorlogs | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - id: checkout | |
| uses: actions/checkout@v5 | |
| - name: Meson Build | |
| uses: BSFishy/meson-build@v1.0.3 | |
| with: | |
| action: build | |
| directory: output | |
| setup-options: -Ddocumentation=disabled -Dwrap_mode=forcefallback | |
| meson-version: 1.3.0 | |
| build-windows-msvc: | |
| runs-on: windows-latest | |
| steps: | |
| - id: checkout | |
| uses: actions/checkout@v5 | |
| - name: Add VisualStudio command line tools into path | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| - name: Meson Build | |
| uses: BSFishy/meson-build@v1.0.3 | |
| with: | |
| action: build | |
| directory: output | |
| setup-options: -Ddocumentation=disabled -Dwrap_mode=forcefallback | |
| meson-version: 1.3.0 | |
| - name: "Upload mpc.exe" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mpc.exe | |
| path: output/mpc.exe |