Commit abbff00

Karn Wong <karn@karnwong.me>
2026-09-01 08:35:55
ci: add rust build before go-test
1 parent 8245daa
Changed files (2)
.github/workflows/go-test.yaml
@@ -13,6 +13,19 @@ jobs:
       contents: write
     steps:
       - uses: actions/checkout@v7
+      - name: Setup Rust
+        uses: actions-rust-lang/setup-rust-toolchain@v1
+        with:
+          toolchain: stable
+          cache: true
+          cache-workspaces: ./lib/system
+          cache-key: ${{ runner.os }}
+      - name: Setup cross toolchain
+        run: cargo install cross
+      - name: Build Rust static library
+        run: ./scripts/build-static-ci.sh
+        env:
+          TARGET: x86_64-unknown-linux-gnu
       - name: Setup Go
         uses: actions/setup-go@v7
         with:
.pre-commit-config.yaml
@@ -15,7 +15,7 @@ repos:
       - id: fix-byte-order-marker
       - id: mixed-line-ending
   - repo: https://github.com/kahnwong/pre-commit
-    rev: "e6a613c"
+    rev: "e4f4ade"
     hooks:
       - id: go-fmt
       - id: go-imports