Skip to content

Commit

Permalink
init first
Browse files Browse the repository at this point in the history
  • Loading branch information
khaos committed Dec 15, 2024
1 parent 5ae65c0 commit 57cf3c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ jobs:
run: |
sudo apt update
sudo apt install -y openjdk-17-jdk
# 设置 JDK 17 为默认版本
sudo update-alternatives --set java /usr/lib/jvm/java-17-openjdk-amd64/bin/java
sudo update-alternatives --set javac /usr/lib/jvm/java-17-openjdk-amd64/bin/javac
# 设置 JAVA_HOME 环境变量
echo "JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64" | sudo tee -a /etc/environment
source /etc/environment
- name: 验证 JDK 安装
run: java -version
Expand Down

0 comments on commit 57cf3c0

Please sign in to comment.