Skip to content

Commit

Permalink
gh-action: refactord stable build
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Jun 29, 2024
1 parent 7b2d60b commit 3d73a7c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 294 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/flake-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ jobs:

- uses: cachix/install-nix-action@V27

- name: patch stable
- name: build stable
if: matrix.target == 'stable'
run: |
sed -i flake.nix \
-e 's|url = "github:NixOS/nixpkgs/nixos-unstable"|follows = "nixpkgs-stable"|g' \
-e 's|url = "github:nix-community/home-manager"|follows = "home-manager-stable"|g' \
-e 's|url = "github:nix-community/nixvim"|follows = "nixvim-stable"|g'
- run: nix build -L
nix build -L \
--override-input nixpkgs github:NixOS/nixpkgs/nixos-24.05 \
--override-input home-manager github:nix-community/home-manager/release-24.05 \
--override-input nixvim github:nix-community/nixvim/nixos-24.05
- name: build unstable
if: matrix.target != 'stable'
run: |
nix build -L
Loading

0 comments on commit 3d73a7c

Please sign in to comment.