install jdk
Some checks failed
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (push) Successful in 10s
checks / Set up Java for Backend Tests and Build (push) Failing after 3s
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 10s
checks / Set up Java for Backend Tests and Build (pull_request) Failing after 4s
Some checks failed
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (push) Successful in 10s
checks / Set up Java for Backend Tests and Build (push) Failing after 3s
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 10s
checks / Set up Java for Backend Tests and Build (pull_request) Failing after 4s
This commit is contained in:
@ -109,13 +109,26 @@ jobs:
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
- name: Install OpenJDK 21
|
||||
run: |
|
||||
# Ensure apt and necessary tools are available
|
||||
apt-get update -y
|
||||
apt-get install -y apt-transport-https ca-certificates curl gnupg wget software-properties-common
|
||||
|
||||
# Download and install OpenJDK 21 (Oracle version)
|
||||
wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb
|
||||
|
||||
# Install the downloaded package
|
||||
apt install -y ./jdk-21_linux-x64_bin.deb
|
||||
|
||||
# Verify installation
|
||||
java -version
|
||||
|
||||
- uses: actions/checkout@v5
|
||||
- name: Set up JDK 21 for x64
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
#distribution: 'oracle'
|
||||
distribution: 'corretto'
|
||||
#distribution: 'temurin'
|
||||
architecture: x64
|
||||
cache: maven
|
||||
|
||||
Reference in New Issue
Block a user