From b8aaa0a8d1724d791690707f1fd5cd564549b452 Mon Sep 17 00:00:00 2001 From: Mikalai Seva Date: Mon, 30 Mar 2026 11:29:17 +0200 Subject: [PATCH] feat: Consolidate Nix flake check into nix.yml workflow --- .github/workflows/check_flake.yml | 15 --------------- .github/workflows/nix.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 15 deletions(-) delete mode 100644 .github/workflows/check_flake.yml create mode 100644 .github/workflows/nix.yml diff --git a/.github/workflows/check_flake.yml b/.github/workflows/check_flake.yml deleted file mode 100644 index d80ffff..0000000 --- a/.github/workflows/check_flake.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Check Nix flake -on: - pull_request: - push: - paths: - - 'flake.lock' - - 'flake.nix' - -jobs: - check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: cachix/install-nix-action@v20 - - run: nix flake check diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 0000000..13793e8 --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,30 @@ +name: Build Nix Package + +on: + push: + branches: [ main ] + paths: + - 'flake.lock' + - 'flake.nix' + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v6 + + - name: Install Nix + uses: cachix/install-nix-action@v31 + with: + nix_path: nixpkgs=channel:nixos-unstable + + - name: Setup Magic Nix Cache + uses: DeterminateSystems/magic-nix-cache-action@v13 + + - name: Check flake + run: nix flake check + + - name: Build package + run: nix build .