CI: build.sh: update Nix after its installation
Nix that installs through Nix installer is 2.0.4. Current Nix release is 2.3.5. To to have a less of old bugs, and more of new bugs - Nix after installation needs an update right away. Old Nix literally prevented importing Nix channels on Linux Nix installations. M build.sh
This commit is contained in:
parent
a214c74e02
commit
ad99540ff5
9
build.sh
9
build.sh
|
@ -140,6 +140,15 @@ fi
|
|||
|
||||
MAIN() {
|
||||
|
||||
|
||||
# 2020-06-01: NOTE: Nix installer installs old Nix version that has bugs that prevented importing Nixpks repository channels, updating to latest Nix since it does not have that bug
|
||||
# NOTE: Overall it is useful to have in CI test builds the latest stable Nix
|
||||
# NOTE: User-run update for Linux setup
|
||||
nix upgrade-nix || true
|
||||
# NOTE: Superuser update for macOS setup
|
||||
sudo nix upgrade-nix || true
|
||||
|
||||
|
||||
# NOTE: Secrets are not shared to PRs from forks
|
||||
# NOTE: nix-build | cachix push <name> - uploads binaries, runs&works only in the branches of the main repository, so for PRs - else case runs
|
||||
|
||||
|
|
Loading…
Reference in New Issue