Skip to content

Commit

Permalink
.github/workflows/release: add dependency (#3081) (#3084)
Browse files Browse the repository at this point in the history
Co-authored-by: Everett Hildenbrandt <everett.hildenbrandt@gmail.com>
Co-authored-by: rv-jenkins <admin@runtimeverification.com>
  • Loading branch information
3 people committed Dec 12, 2022
1 parent 047e9a7 commit e96006f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion package/nix/install
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ in your shell."
fi
fi

PREV_KUP_INSTALL=$(nix profile list --experimental-features 'nix-command flakes' | awk '/packages\..*\.kup/ {print $1}')
if ! [[ -z "$PREV_KUP_INSTALL" ]]; then
echo "Removing previous K framework installer versions ..."
GC_DONT_GC=1 nix profile remove $PREV_KUP_INSTALL \
--experimental-features 'nix-command flakes'
fi

echo "Installing the K framework installer utility (kup) ..."

GC_DONT_GC=1 nix profile install github:runtimeverification/kup#kup \
--option extra-substituters 'https://k-framework.cachix.org' \
--option extra-trusted-public-keys 'k-framework.cachix.org-1:jeyMXB2h28gpNRjuVkehg+zLj62ma1RnyyopA/20yFE=' \
Expand All @@ -53,4 +62,4 @@ in your shell."
echo -e "$NIX_POST_INSTALL_MESSAGE"
fi

}
}

0 comments on commit e96006f

Please sign in to comment.