diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5b96d4..3fdcf32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,3 +50,15 @@ jobs: - name: "Check installation" working-directory: ./razer_control_gui run: ../ci-helpers/check-installation.sh + + build-nix: + name: "Build and check Nix" + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v27 + with: + nix_path: nixpkgs=channel:nixos-unstable + - run: nix build + - run: nix flake check diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml deleted file mode 100644 index ea560b3..0000000 --- a/.github/workflows/nix.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: "Nix" - -on: - workflow_dispatch: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - build: - name: "Build flake" - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v27 - with: - nix_path: nixpkgs=channel:nixos-unstable - - run: nix build - - run: nix flake check