diff options
| author | 2026-01-16 15:53:50 +0800 | |
|---|---|---|
| committer | 2026-01-16 15:53:50 +0800 | |
| commit | d5a00cca455c6274deeb6bfdd62a6493b41699cb (patch) | |
| tree | 6aaf61f7c1167881b4ae3dcf2a0a277ad8b2c767 /.github | |
| parent | 521ca11bdb97523b08fa255be015cd9da19f8895 (diff) | |
| download | DropOut-d5a00cca455c6274deeb6bfdd62a6493b41699cb.tar.gz DropOut-d5a00cca455c6274deeb6bfdd62a6493b41699cb.zip | |
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.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/prek.yml | 16 |
1 files changed, 16 insertions, 0 deletions
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 |