From 4e937c944cfa7318cffea4e629650018219cd98a Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Thu, 5 Dec 2024 16:10:04 -0800 Subject: [PATCH] ci: add flake checker action --- .github/workflows/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..332acb7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ +name: Check flake + +on: + push: + pull_request: + +jobs: + check: + runs-on: ubuntu-22.04 + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Check Nix flake Nixpkgs inputs + uses: DeterminateSystems/flake-checker-action@main + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main + - run: nix flake check --all-systems