feature/setup-workflow-pipeline: add lombok, add gitea workflow #2
@ -98,34 +98,6 @@ jobs:
|
||||
git clone --quiet "$CLONE_URL_WITH_AUTH" .
|
||||
echo "${{ gitea.repository }} cloned successfully."
|
||||
|
||||
- name: Install OpenJDK 21
|
||||
shell: bash
|
||||
run: |
|
||||
set -e
|
||||
|
||||
echo "Detected Ubuntu/Debian, preparing apt sources..."
|
||||
|
||||
# Rebuild sources list in case it’s empty (common in slim containers)
|
||||
if [ ! -s /etc/apt/sources.list ]; then
|
||||
echo "Rebuilding /etc/apt/sources.list..."
|
||||
echo "deb http://archive.ubuntu.com/ubuntu/ noble main universe restricted multiverse" > /etc/apt/sources.list
|
||||
echo "deb http://archive.ubuntu.com/ubuntu/ noble-updates main universe restricted multiverse" >> /etc/apt/sources.list
|
||||
echo "deb http://archive.ubuntu.com/ubuntu/ noble-security main universe restricted multiverse" >> /etc/apt/sources.list
|
||||
fi
|
||||
|
||||
echo "Updating package lists..."
|
||||
apt-get update -y -qq
|
||||
|
||||
echo "Installing dependencies silently..."
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq wget curl ca-certificates gnupg software-properties-common
|
||||
|
||||
echo "Downloading and installing Oracle JDK 21..."
|
||||
wget -q https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb
|
||||
apt install -y -qq ./jdk-21_linux-x64_bin.deb
|
||||
|
||||
echo "Verifying Java installation..."
|
||||
java -version
|
||||
|
||||
- name: Set up Java 21 and Maven
|
||||
run: |
|
||||
if command -v act >/dev/null 2>&1; then
|
||||
|
||||
Reference in New Issue
Block a user