Skip to content

Commit

Permalink
fix: set HOME in release CI (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-stoian-zama authored Jan 8, 2025
1 parent bf0413b commit f3f6d91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ jobs:
sed -i 's|^deb http://archive|deb http://fr.archive|g' /etc/apt/sources.list
apt update && apt install git git-lfs -y
apt -y install sudo
export HOME=/root
# We need to include LFS files as some are needed for checking the documentation
- name: Checkout Code
Expand Down
6 changes: 3 additions & 3 deletions script/make_utils/setup_os_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ linux_install_github_cli () {
# https://github.com/cli/cli/blob/trunk/docs/install_linux.md#debian-ubuntu-linux-raspberry-pi-os-apt
echo "Installing github-CLI"
export GH_CLI_VERSION="2.51.0"
wget -P /home/dev_user https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.deb
${SUDO_BIN:+$SUDO_BIN} dpkg -i /home/dev_user/gh_${GH_CLI_VERSION}_linux_amd64.deb
wget -P $HOME https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.deb
${SUDO_BIN:+$SUDO_BIN} dpkg -i $HOME/gh_${GH_CLI_VERSION}_linux_amd64.deb
}

linux_install_cmake () {
Expand Down Expand Up @@ -174,7 +174,7 @@ if [[ "${OS_NAME}" == "Linux" ]]; then

# Install poetry, either with pipx for ubuntu >= 23
# or through regular pip for older ubuntu
(pipx install poetry && pipx ensurepath) || \
(pipx install poetry==1.8.4 && pipx ensurepath) || \
(\
python3 -m pip install --no-cache-dir --upgrade pip && \
python3 -m pip install --no-cache-dir --ignore-installed poetry==1.8.4 \
Expand Down

0 comments on commit f3f6d91

Please sign in to comment.