Skip to content

Report a line-in signal to the server with --signal-threshold #475

Report a line-in signal to the server with --signal-threshold

Report a line-in signal to the server with --signal-threshold #475

Workflow file for this run

name: CI
# Every branch push and PR; tags belong to release.yml.
# `'**'`, not `'*'`: only the doubled form matches the `/` in task branch names.
# Trap: a push naming only tags or tags-ignore never fires for branches.
on:
push:
branches:
- '**'
pull_request:
# Cancels a superseded push; the push/PR pair lands in different groups.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
defaults:
run:
# Explicit, since the default is bash -e without pipefail.
shell: bash
jobs:
# Lints scripts/ and the package maintainer scripts with shellcheck; tags skip this job but still run the scripts.
shellcheck:
name: shellcheck
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- name: Check out
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Lint the shell scripts
run: shellcheck scripts/*.sh packaging/*.sh
clang-format:
name: clang-format
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- name: Check out
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Pinned, so a new clang-format release cannot fail an untouched tree.
- name: Install clang-format
run: pipx install clang-format==20.1.8
- name: Check formatting
run: scripts/format.sh --check
# pcm_volume.cpp promises little-endian PCM, which only a big-endian host can get wrong.
big-endian:
name: big-endian (mips)
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Check out
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install the MIPS cross compiler and emulator
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y g++-mips-linux-gnu qemu-user-static
# Static, so qemu needs no MIPS sysroot.
- name: Build the volume check for big-endian MIPS
run: |
mips-linux-gnu-g++ -std=c++20 -O2 -Wall -Wextra -Werror -static -Isrc \
-o pcm-volume-le-check tests/pcm_volume_le_check.cpp src/pcm_volume.cpp
- name: Run it under QEMU
run: qemu-mips-static ./pcm-volume-le-check
# The matrix lives in build.yml (shared with release.yml); linux-armv6 is in build-armv6.yml.
build:
uses: ./.github/workflows/build.yml