From 04ccf75f9731a04bc5760da7c7f1097fbe89ffe3 Mon Sep 17 00:00:00 2001 From: duvetfall Date: Sun, 9 Jun 2024 15:36:02 +0300 Subject: [PATCH] refactor(github-actions): add caching stable --- .github/workflows/nix-github-actions.yml | 13 ++++++++++++- flake.lock | 4 ++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nix-github-actions.yml b/.github/workflows/nix-github-actions.yml index dc2eeeb..fa7f7a0 100644 --- a/.github/workflows/nix-github-actions.yml +++ b/.github/workflows/nix-github-actions.yml @@ -32,5 +32,16 @@ jobs: steps: - uses: actions/checkout@v4 - uses: cachix/install-nix-action@v27 - - name: Build "${{ matrix.attr }}" + - name: \[unstable\] Build "${{ matrix.attr }}" run: nix build -L ".#${{ matrix.attr }}" + + nix-build-stable: + needs: nix-matrix + runs-on: ${{ matrix.os }} + strategy: + matrix: ${{fromJSON(needs.nix-matrix.outputs.matrix)}} + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v27 + - name: \[stable\] Build "${{ matrix.attr }}" + run: nix build --inputs-from . --override-input nixpkgs stable -L ".#${{ matrix.attr }}" diff --git a/flake.lock b/flake.lock index 79f7e8d..abcc902 100644 --- a/flake.lock +++ b/flake.lock @@ -71,10 +71,10 @@ "flake-parts": "flake-parts", "nix-github-actions": "nix-github-actions", "nixpkgs": "nixpkgs", - "stable": "stable" + "stablee": "stablee" } }, - "stable": { + "stablee": { "locked": { "lastModified": 1717696253, "narHash": "sha256-1+ua0ggXlYYPLTmMl3YeYYsBXDSCqT+Gw3u6l4gvMhA=",