Merge pull request #58 from MusicPlayerDaemon/dependabot/github_actio… #50
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
--- | |
on: | |
workflow_dispatch: | |
push: | |
paths-ignore: | |
- 'contrib/**' | |
- 'doc/**' | |
- 'systemd/**' | |
branches: | |
- master | |
pull_request: | |
paths-ignore: | |
- 'contrib/**' | |
- 'doc/**' | |
- 'systemd/**' | |
branches: | |
- master | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
build-linux: | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, ubuntu-20.04] | |
include: | |
- os: ubuntu-22.04 | |
cc: gcc-11 | |
cxx: g++-11 | |
- os: ubuntu-20.04 | |
cc: gcc-10 | |
cxx: g++-10 | |
runs-on: ${{ matrix.os }} | |
env: | |
CC: ccache ${{ matrix.cc }} | |
CXX: ccache ${{ matrix.cxx }} | |
steps: | |
- id: checkout | |
uses: actions/checkout@v4 | |
- id: cache-ccache | |
uses: hendrikmuhs/ccache-action@v1 | |
with: | |
key: ${{ matrix.os }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends \ | |
meson \ | |
${{ matrix.cxx }} ${{matrix.cc }} \ | |
libsystemd-dev \ | |
libgcrypt-dev \ | |
libcurl4-gnutls-dev \ | |
libmpdclient-dev | |
- name: Build | |
uses: BSFishy/meson-build@v1.0.3 | |
with: | |
action: build | |
directory: output | |
setup-options: -Dtest=true | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- id: checkout | |
uses: actions/checkout@v4 | |
- id: cache-ccache | |
uses: hendrikmuhs/ccache-action@v1 | |
with: | |
key: macos | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Install dependencies | |
run: | | |
brew install \ | |
meson ninja \ | |
libgcrypt \ | |
curl \ | |
libmpdclient | |
- name: Meson Build | |
uses: BSFishy/meson-build@v1.0.3 | |
with: | |
action: build | |
directory: output | |
setup-options: -Dtest=true |