From 9bc4a75ad33ce0d7c8f456e6a013fb6fb5a0bae0 Mon Sep 17 00:00:00 2001 From: Unknown15082 Date: Sat, 29 Mar 2025 20:08:21 +0800 Subject: [PATCH] Add CI job for checking dependencies --- .github/workflows/build_test.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index f21d898..a8265e1 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -64,6 +64,16 @@ jobs: run: cargo test env: SQLX_OFFLINE: "true" + checkDeps: + name: Check dependency hash + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: cachix/install-nix-action@v27 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - name: Build dependencies + run: nix build .#youmubot.cargoDeps --option substituters "https://cache.nixos.org" --option extra-substituters "" build: name: Build runs-on: ubuntu-latest