CI: Install Java 11 manually
@@ -21,6 +21,14 @@ jobs:
sudo apt update && sudo apt install -y zstd
scripts/install-dependencies.sh
paramgen/scripts/install-dependencies.sh
+ - run:
+ # Install Java 11 (Ubuntu 22.04 has Java 17 by default)
+ name: Install OpenJDK 11
+ command: |
+ sudo apt-get update && sudo apt-get install openjdk-11-jdk
+ sudo update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java
+ sudo update-alternatives --set javac /usr/lib/jvm/java-11-openjdk-amd64/bin/javac
+ java -version
- run:
name: Build project
command: scripts/build.sh
