Add sound multiplexer auto-detection when building #678
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
name: CI | |
on: [push, pull_request] | |
jobs: | |
semu-linux: | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
dependency: | |
- "" | |
- "libpulse-dev" | |
- "libjack-jackd2-dev" | |
- "libpulse-dev libjack-jackd2-dev" | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v4 | |
- name: install-dependencies | |
run: | | |
sudo apt-get install build-essential device-tree-compiler expect | |
sudo apt-get install libasound2-dev libudev-dev | |
- name: Parse sound multiplexer dependencies | |
run: | | |
DEPS="${{ matrix.apt_deps }}" | |
echo "deps_raw=$DEPS" >> $GITHUB_OUTPUT | |
if [[ -z "$DEPS" || "$DEPS" == "none" ]]; then | |
echo "has_deps=false" >> $GITHUB_OUTPUT | |
else | |
echo "has_deps=true" >> $GITHUB_OUTPUT | |
fi | |
- name: install sound multiplexer | |
if: steps.deps.outputs.has_deps == 'true' | |
run: | | |
echo "Installing sound multiplexer packages: ${{ steps.deps.outputs.deps_raw }}" | |
sudo apt-get update | |
sudo apt-get install -y ${{ steps.deps.outputs.deps_raw }} | |
- name: default build | |
run: make | |
shell: bash | |
- name: automated test | |
run: .ci/autorun.sh | |
shell: bash | |
- name: netdev test | |
run: .ci/test-netdev.sh | |
shell: bash | |
if: ${{ success() }} | |
semu-macOS: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install-dependencies | |
run: | | |
brew install make dtc expect e2fsprogs | |
- name: default build | |
run: make | |
shell: bash | |
- name: automated test | |
run: .ci/autorun.sh | |
shell: bash | |
coding_style: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: coding convention | |
run: | | |
sudo apt-get install -q -y clang-format-18 | |
.ci/check-format.sh | |
shell: bash |