From d5a00cca455c6274deeb6bfdd62a6493b41699cb Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Fri, 16 Jan 2026 15:53:50 +0800 Subject: chore: enhance prek workflow with Rust installation and system dependencies Added steps to the GitHub Actions workflow for installing Rust and necessary system dependencies on Linux, improving the environment setup for the prek auto-fix action. --- .github/workflows/prek.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/prek.yml b/.github/workflows/prek.yml index cc3b4f9..f002c8a 100644 --- a/.github/workflows/prek.yml +++ b/.github/workflows/prek.yml @@ -20,6 +20,22 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Install system dependencies + if: runner.os == 'Linux' + run: | + sudo apt-get update || true + sudo apt-get install -y \ + libwebkit2gtk-4.1-dev \ + build-essential \ + libssl-dev \ + libgtk-3-dev \ + libayatana-appindicator3-dev \ + librsvg2-dev \ + pkg-config + - name: Run prek (auto-fix) id: prek uses: j178/prek-action@v1 -- cgit v1.2.3-70-g09d2