generated from mingliqiye/lib-tem
- 在 GitHub Actions 工作流程中添加了设置 JDK 24 的步骤 - 使用 actions/setup-java@v4 动作进行 JDK 24 的配置 - 保留了原有的 JDK 8 设置步骤
30 lines
628 B
YAML
30 lines
628 B
YAML
name: Github Actions Build
|
|
run-name: ${{ github.actor }} is Build out Github Actions 🚀
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
Build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 8
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '8'
|
|
distribution: 'adopt'
|
|
|
|
- name: Set up JDK 24
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '24'
|
|
distribution: 'adopt'
|
|
|
|
- name: build
|
|
run: |
|
|
./gradlew
|
|
./gradlew build
|