aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2026-01-16 15:53:50 +0800
committerHsiangNianian <i@jyunko.cn>2026-01-16 15:53:50 +0800
commitd5a00cca455c6274deeb6bfdd62a6493b41699cb (patch)
tree6aaf61f7c1167881b4ae3dcf2a0a277ad8b2c767
parent521ca11bdb97523b08fa255be015cd9da19f8895 (diff)
downloadDropOut-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.
-rw-r--r--.github/workflows/prek.yml16
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