backend install java 21 maven package manually
Some checks failed
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (push) Successful in 12s
checks / Set up Java for Backend Tests and Build (push) Failing after 2s
Gitea Actions Demo / Explore-Gitea-Actions (pull_request) Successful in 3s
Gitea Actions Demo / Explore-Gitea-Actions-2 (pull_request) Successful in 2s
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (pull_request) Successful in 11s
checks / Set up Java for Backend Tests and Build (pull_request) Failing after 2s

This commit is contained in:
Patrick
2025-10-30 23:03:51 +01:00
parent 9a1874935c
commit 02b4c7b4fe

View File

@ -98,6 +98,13 @@ jobs:
git clone --quiet "$CLONE_URL_WITH_AUTH" .
echo "${{ gitea.repository }} cloned successfully."
- name: Install Java 21 manually
run: |
apt-get update && apt-get install -y openjdk-21-jdk
export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
java -version
- name: Install Maven manually
run: |
mkdir -p $HOME/maven
@ -105,6 +112,7 @@ jobs:
export PATH=$HOME/maven/bin:$PATH
mvn -version
# Setup Java 21 and Maven with caching
- name: Set up Java & Maven
uses: actions/setup-java@v4