From 4997af879a55c3fcb84a5f0fe7cb72be24b98d21 Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Thu, 24 Jul 2025 09:14:43 +0100 Subject: [PATCH] refactor(ci): move flake check from CI to separate daily workflow Move Nix flake input checking from the main CI pipeline to a dedicated daily scheduled workflow to reduce CI build time while maintaining regular dependency monitoring. --- .github/workflows/ci.yml | 11 ----------- .github/workflows/daily-flake-check.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/daily-flake-check.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a43fae5..fec7cec3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,17 +12,6 @@ env: CARGO_TERM_COLOR: always jobs: - self-care: - name: Flake self-check - runs-on: ubuntu-latest - timeout-minutes: 30 - steps: - - uses: actions/checkout@v4 - - name: Check Nix flake inputs - uses: DeterminateSystems/flake-checker-action@v9 - with: - fail-mode: true - pre-commit-checks: name: "Cargo fmt, typos" runs-on: ubuntu-latest diff --git a/.github/workflows/daily-flake-check.yml b/.github/workflows/daily-flake-check.yml new file mode 100644 index 00000000..659ca6c4 --- /dev/null +++ b/.github/workflows/daily-flake-check.yml @@ -0,0 +1,20 @@ +name: Daily Flake Check + +on: + schedule: + # Run daily at 6 AM UTC + - cron: '0 6 * * *' + # Allow manual trigger + workflow_dispatch: + +jobs: + flake-check: + name: Daily Nix Flake Check + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v4 + - name: Check Nix flake inputs + uses: DeterminateSystems/flake-checker-action@v9 + with: + fail-mode: true