diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3d696c629..f18331367 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,50 +13,8 @@ concurrency: cancel-in-progress: true jobs: - rust-quality: - name: Rust Quality (fmt + clippy) - runs-on: ubuntu-22.04 - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 1 - - - name: Install Rust (rust-toolchain.toml) - uses: dtolnay/rust-toolchain@1.93.0 - with: - components: rustfmt, clippy - - - name: Install Tauri build dependencies - run: | - sudo apt-get update - sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf - - - name: Cargo.lock fingerprint (deps only) - id: cargo-lock-fingerprint - shell: bash - run: | - echo "hash=$(tail -n +8 Cargo.lock | openssl dgst -sha256 | awk '{print $2}')" >> "$GITHUB_OUTPUT" - - - name: Cache Cargo registry and git sources - uses: actions/cache@v4 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - key: ${{ runner.os }}-cargo-registry-${{ steps.cargo-lock-fingerprint.outputs.hash }} - restore-keys: | - ${{ runner.os }}-cargo-registry- - - - name: Check formatting (cargo fmt) - run: cargo fmt --all -- --check - - - name: Run clippy (core crate) - run: cargo clippy -p openhuman - build: - name: Build Tauri App (Linux x86_64) - needs: rust-quality + name: Build Tauri App runs-on: ubuntu-22.04 steps: - name: Checkout code diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml index 46e33b277..0e6225346 100644 --- a/.github/workflows/typecheck.yml +++ b/.github/workflows/typecheck.yml @@ -57,3 +57,44 @@ jobs: run: yarn workspace openhuman-app lint env: NODE_ENV: test + + rust-quality: + name: Rust Quality (fmt + clippy) + runs-on: ubuntu-22.04 + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Install Rust (rust-toolchain.toml) + uses: dtolnay/rust-toolchain@1.93.0 + with: + components: rustfmt, clippy + + - name: Install Tauri build dependencies + run: | + sudo apt-get update + sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf + + - name: Cargo.lock fingerprint (deps only) + id: cargo-lock-fingerprint + shell: bash + run: | + echo "hash=$(tail -n +8 Cargo.lock | openssl dgst -sha256 | awk '{print $2}')" >> "$GITHUB_OUTPUT" + + - name: Cache Cargo registry and git sources + uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + key: ${{ runner.os }}-cargo-registry-${{ steps.cargo-lock-fingerprint.outputs.hash }} + restore-keys: | + ${{ runner.os }}-cargo-registry- + + - name: Check formatting (cargo fmt) + run: cargo fmt --all -- --check + + - name: Run clippy (core crate) + run: cargo clippy -p openhuman