diff --git a/.github/workflows/auto-ci-builds.yml b/.github/workflows/auto-ci-builds.yml index f9f0d0d22..a10df500b 100644 --- a/.github/workflows/auto-ci-builds.yml +++ b/.github/workflows/auto-ci-builds.yml @@ -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 { }; 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 { }; in pkgs.callPackage ./nix/default.nix { gitBranch = "${{ github.ref_name }}"; }'