Skip to content

Merge pull request #4 from p6laris/dev #32

Merge pull request #4 from p6laris/dev

Merge pull request #4 from p6laris/dev #32

Workflow file for this run

name: CI
on:
push:
branches: [main, develop, dev]
paths-ignore:
- "**.md"
- "docs/**"
pull_request:
branches: [main, develop, dev]
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
jobs:
check:
name: Check & Lint (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libasound2-dev
- name: cargo fmt
if: runner.os == 'Linux'
run: cargo fmt --check
- run: cargo clippy --all-targets -- -D warnings
- run: cargo test --verbose
build:
name: Cross-platform build
uses: ./.github/workflows/reusable-build.yml
with:
release: false