Fix CI/CD #140
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: | |
| pull_request: {} | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| rust-version: stable | |
| components: clippy | |
| - name: Install dependencies | |
| run: sudo apt-get update && sudo apt-get install -y libpulse-dev libopus-dev libmp3lame-dev | |
| - name: build | |
| run: cargo build | |
| - name: lint | |
| run: cargo clippy -- -D warnings | |
| - name: rustfmt | |
| run: cargo fmt -- --check | |
| - name: test | |
| run: cargo test | |
| - name: doc | |
| run: cargo doc | |
| nix: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/cache@v4 | |
| with: | |
| path: /nix | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - uses: DeterminateSystems/nix-installer-action@main |