Skip to content

Commit

Permalink
Merge branch 'experiments/nixos_stable_build'
Browse files Browse the repository at this point in the history
  • Loading branch information
meebey committed Apr 21, 2024
2 parents fbcc411 + b9073a8 commit c58c739
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/auto-ci-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,41 @@ jobs:
run: |
dpkg-buildpackage -us -uc -rfakeroot --build=binary
build_nix_NixOS-stable:
build_nix_NixOS-stable-23_11:
runs-on: ubuntu-latest
container: nixos/nix
steps:
- uses: actions/checkout@v1
- name: check Nix version
run: |
nix --version
nix-channel --list
- name: switch to NixOS stable channel
run: |
nix-channel --remove nixos
nix-channel --remove nixpkgs
nix-channel --add https://nixos.org/channels/nixos-23.11 nixos
nix-channel --add https://nixos.org/channels/nixos-23.11 nixpkgs
- name: list and update channel
run: |
nix-channel --list
nix-channel --update
- name: build nix pkg
run: |
nix-build --expr 'let pkgs = import <nixpkgs> { }; in pkgs.callPackage ./nix/default.nix { gitBranch = "${{ github.ref_name }}"; }'
build_nix_NixOS-unstable:
runs-on: ubuntu-latest
container: nixos/nix
steps:
- uses: actions/checkout@v1
- name: check Nix version
run: |
nix --version
nix-channel --list
- name: update channel
run: |
nix-channel --update
- name: build nix pkg
run: |
nix-build --expr 'let pkgs = import <nixpkgs> { }; in pkgs.callPackage ./nix/default.nix { gitBranch = "${{ github.ref_name }}"; }'

0 comments on commit c58c739

Please sign in to comment.