- Per-app volume slider and a system volume card (slider + mute) - Default output device picker; per-app output device picker (Windows via IPolicyConfig / IAudioPolicyConfigFactory, Linux via sink moves; macOS has no per-app routing API) - Slider commands are coalesced on the audio thread - Fix the Windows title-bar and taskbar icon (set via winit attributes) - About: "by X4Lo" and a GitHub link - README: app icon above the title - --list prints output devices and system volume - CI: run on master and on manual dispatch
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master]
|
|
workflow_dispatch:
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
name: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [windows-latest, macos-latest, ubuntu-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: clippy, rustfmt
|
|
- uses: Swatinem/rust-cache@v2
|
|
- name: Linux system dependencies
|
|
if: runner.os == 'Linux'
|
|
run: sudo apt-get update && sudo apt-get install -y pkg-config libpulse-dev libfontconfig1-dev libxkbcommon-dev
|
|
- name: Format
|
|
run: cargo fmt --all --check
|
|
- name: Clippy
|
|
run: cargo clippy --all-targets -- -D warnings
|
|
- name: Test
|
|
run: cargo test
|
|
- name: Release build
|
|
run: cargo build --release
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: hushkey-${{ runner.os }}
|
|
path: |
|
|
target/release/hushkey
|
|
target/release/hushkey.exe
|
|
if-no-files-found: ignore
|