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:
Anton-Latukha 2020-06-01 18:43:26 +03:00
parent a214c74e02
commit ad99540ff5
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41
1 changed files with 9 additions and 0 deletions

View File

@ -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