From 1d4a66fa06c8f6799eb5ddf45568518b5cbefdb4 Mon Sep 17 00:00:00 2001 From: Richard Goulter Date: Fri, 7 Jun 2024 21:14:07 +0700 Subject: [PATCH] ci: add github action nix flake check --- .github/workflows/nix-flake-check.yml | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/nix-flake-check.yml diff --git a/.github/workflows/nix-flake-check.yml b/.github/workflows/nix-flake-check.yml new file mode 100644 index 0000000..8784e3f --- /dev/null +++ b/.github/workflows/nix-flake-check.yml @@ -0,0 +1,31 @@ +name: Nix Flake Check + +on: + push: + branches: + - master + pull_request: + branches: + - '*' + +jobs: + check: + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + # - macos-latest + # - macos-13 + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Nix + uses: DeterminateSystems/nix-installer-action@main + + - name: Run Nix Flake Check + run: nix flake check