Bump versions #559
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: Context Switch CI | |
on: | |
push: | |
branches: [ '**' ] # Run on all branches | |
pull_request: | |
branches: [ '**' ] # Run on all pull requests | |
jobs: | |
code-quality: | |
name: Code Quality | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
# libasound2-dev Required for ALSA audio support, protobuf-compiler for Aristech | |
sudo apt-get install -y libasound2-dev protobuf-compiler | |
- name: Verify protoc installation | |
run: protoc --version | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Check formatting | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: Clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --all-targets -- -D warnings | |
tests: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
# libasound2-dev Required for ALSA audio support, protobuf-compiler for Aristech | |
sudo apt-get install -y libasound2-dev protobuf-compiler | |
- name: Verify protoc installation | |
run: protoc --version | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Run tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --workspace | |
build-examples: | |
name: Build Examples | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
# libasound2-dev Required for ALSA audio support, protobuf-compiler for Aristech | |
sudo apt-get install -y libasound2-dev protobuf-compiler | |
- name: Verify protoc installation | |
run: protoc --version | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Build examples | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --examples --all-features |