diff --git a/.github/workflows/build_packages.yml b/.github/workflows/build_packages.yml index d35135a9d2..91935dc679 100644 --- a/.github/workflows/build_packages.yml +++ b/.github/workflows/build_packages.yml @@ -74,6 +74,7 @@ jobs: - name: Prepare build run: | + set -xe wget -O - https://dl.yarnpkg.com/debian/pubkey.gpg | \ sudo gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/yarnkey.gpg --import sudo chmod 644 /usr/share/keyrings/yarnkey.gpg @@ -84,8 +85,11 @@ jobs: sudo dpkg -i packages-microsoft-prod.deb curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash - sudo apt install -y dotnet-sdk-8.0 yarn nodejs rename unzip maven openjdk-21-jdk-headless - JAVA_BIN=$(dpkg -L openjdk-21-jdk-headless | grep bin/java$) + JAVA_BIN=$(sudo dpkg -L openjdk-21-jdk-headless | grep bin/java$) sudo update-alternatives --install /usr/bin/java java "$JAVA_BIN" 100 && sudo update-alternatives --set java "$JAVA_BIN" + java -version + maven -version + exit 1 sudo npm install -g json if [[ "${{ matrix.packageType }}" == "rpm" ]]; then sudo apt install -y python3-rpm python3-pip