From f347e571b982c4351ca05798f1443afd6d96cdfd Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Mon, 25 Nov 2024 20:39:08 +0530 Subject: [PATCH] Add workflow for nix flake check --- .github/workflows/{keys.yml => validation.yml} | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) rename .github/workflows/{keys.yml => validation.yml} (69%) diff --git a/.github/workflows/keys.yml b/.github/workflows/validation.yml similarity index 69% rename from .github/workflows/keys.yml rename to .github/workflows/validation.yml index e20ee88..ba2451e 100644 --- a/.github/workflows/keys.yml +++ b/.github/workflows/validation.yml @@ -1,11 +1,11 @@ -name: keys +name: validation on: pull_request: push: workflow_dispatch: jobs: - key-validation: + keys: runs-on: ubuntu-latest steps: - name: Install dependencies @@ -24,3 +24,16 @@ jobs: - name: Validate specified public keys run: | sops updatekeys -y $(find . -name secrets.yaml) + + flake-check: + runs-on: ubuntu-latest + steps: + - name: Install Nix + uses: cachix/install-nix-action@v27 + with: + extra_nix_config: "extra-platforms = aarch64-linux" + - name: Clone Repository + uses: actions/checkout@v4 + - name: Nix flake check + run: | + nix flake check