From 12af5f21052d0752943a03709e77593c4438a223 Mon Sep 17 00:00:00 2001 From: Ning Sun Date: Tue, 17 Dec 2024 18:18:13 +0800 Subject: [PATCH] ci: add a github action to ensure build on clean system --- .github/workflows/develop.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 8939453f9dd9..7536f3a7ecb7 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -725,6 +725,17 @@ jobs: fail_ci_if_error: false verbose: true + cleanbuild: + if: github.event.pull_request.draft == false + runs-on: ubuntu-20.04-8-cores + timeout-minutes: 60 + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v27 + with: + nix_path: nixpkgs=channel:nixos-unstable + - run: nix-shell --pure --run "cargo build" + # compat: # name: Compatibility Test # needs: build