Create MIT_LICENSE #5
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 Check | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: read-all | |
| jobs: | |
| ci: | |
| name: CI | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential \ | |
| clang \ | |
| cmake \ | |
| libasound2-dev \ | |
| libclang-dev \ | |
| llvm-dev \ | |
| ninja-build \ | |
| pkg-config | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: llvm-tools-preview,rustfmt,clippy | |
| - name: Run fmt | |
| run: cargo fmt -- --check | |
| - name: Run clippy | |
| run: | | |
| cargo clippy --workspace --no-default-features -- -D warnings | |
| - name: Run tests | |
| run: cargo test --workspace --all-targets | |
| - name: Run cargo check | |
| run: cargo check --workspace --all-targets --no-default-features | |
| multi_os: | |
| name: Multi-OS build | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install Linux deps | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential \ | |
| clang \ | |
| cmake \ | |
| libasound2-dev \ | |
| libclang-dev \ | |
| llvm-dev \ | |
| ninja-build \ | |
| pkg-config | |
| - name: Build Workspace | |
| run: cargo build --workspace --release |