Merge upstream main (huangziang serial architecture) into develop #63
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: | |
| push: | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| name: Build and test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libasound2-dev \ | |
| libgl1-mesa-dev \ | |
| libgtk-3-dev \ | |
| libudev-dev \ | |
| libwayland-dev \ | |
| libx11-dev \ | |
| libxcb-render0-dev \ | |
| libxcb-shape0-dev \ | |
| libxcb-xfixes0-dev \ | |
| libxdo-dev \ | |
| libxkbcommon-dev \ | |
| libxi-dev \ | |
| libxrandr-dev \ | |
| libxtst-dev \ | |
| libzmq3-dev | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - name: Cache Rust artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: ci-ubuntu-stable | |
| - name: Run tests | |
| run: cargo test --locked | |
| - name: Build release | |
| run: cargo build --release --locked | |
| lint: | |
| name: Lint (advisory) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libasound2-dev \ | |
| libgl1-mesa-dev \ | |
| libgtk-3-dev \ | |
| libudev-dev \ | |
| libwayland-dev \ | |
| libx11-dev \ | |
| libxcb-render0-dev \ | |
| libxcb-shape0-dev \ | |
| libxcb-xfixes0-dev \ | |
| libxdo-dev \ | |
| libxkbcommon-dev \ | |
| libxi-dev \ | |
| libxrandr-dev \ | |
| libxtst-dev \ | |
| libzmq3-dev | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - name: Cache Rust artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: ci-ubuntu-stable | |
| - name: Check formatting | |
| continue-on-error: true | |
| run: cargo fmt --all -- --check | |
| - name: Run clippy | |
| continue-on-error: true | |
| run: cargo clippy --locked --all-targets -- -D warnings |