From a77b7860468b7c7116ef72b04aa58122de70dcb5 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 30 Jul 2023 13:04:13 +0200 Subject: [PATCH] github-ci: add --- .github/workflows/nix.yml | 25 +++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/nix.yml diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 0000000..fbe6626 --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,25 @@ +--- + +on: + pull_request: + push: + branches: [main, master] + +jobs: + build: + name: Build Nix targets + runs-on: ubuntu-22.04 + steps: + - name: Git checkout + uses: actions/checkout@v3 + - name: Install Nix + uses: cachix/install-nix-action@v22 + - name: Check Nix flake inputs + uses: DeterminateSystems/flake-checker-action@v5 + with: + ignore-missing-flake-lock: false + fail-mode: true + - name: Check Nix flake + run: nix flake check + # - name: Build Nix packages + # run: nix build diff --git a/README.md b/README.md index 180a74a..8972494 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# nixos-config [![built with nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org) +# nixos-config [![built with nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org)![CI](https://github.com/Stunkymonkey/nixos/actions/workflows/nix.yml/badge.svg) This repository holds my NixOS configuration. It is fully reproducible, flakes based, and position-independent, ...