From d2ad1aa9212f7fee250fdd0ae780424de589fedd Mon Sep 17 00:00:00 2001 From: kB01 Date: Tue, 17 Sep 2024 19:44:20 +0200 Subject: [PATCH] Updated Workflow to use Lix --- .github/workflows/build.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 46b6134..e905d0e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,12 +4,22 @@ jobs: build-HyperC: runs-on: docker container: - image: niteo/nixpkgs-nixos-unstable:9e70e9f732fbb15872cb4ea11bd43c14328a0b69 - name: Build NixOS Iso + image: ghcr.io/lix-project/lix:latest + name: "Check NixOS Configuration" steps: - - name: Update Nix Store - run: | - nix-channel --update - - name: Get System Info - run: | - nix-shell -p fastfetch --run fastfetch + - name: "Use Node.js (Workarround)" + uses: actions/setup-node@v4 + with: + node-version: '21.x' + + - name: "Checkout" + uses: actions/checkout@v3 + + - name: "Check evaluation" + run: nix flake check --no-build --all-systems + + - name: "Do linting" + run: nix run nixpkgs#statix -- check . + + - name: "Check formatting" + run: nix fmt -- --fail-on-change