Update JDK version from 21 to 25 in workflow #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will build a package using Maven and then publish it to GitHub packages when a release is created | |
| # For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path | |
| name: Package with Maven in 3 Platforms | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| buildlinux: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '25' | |
| distribution: 'temurin' | |
| server-id: github | |
| settings-path: ${{ github.workspace }} | |
| - name: Build with Maven | |
| run: mvn -B package --file pom.xml | |
| - name: Upload a Build Artifact | |
| uses: actions/upload-artifact@v4.6.2 | |
| with: | |
| name: linux | |
| path: target/ACGPicDownload-*-jar-with-dependencies.jar | |
| retention-days: 7 | |
| buildwin: | |
| runs-on: windows-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '25' | |
| distribution: 'temurin' | |
| server-id: github | |
| settings-path: ${{ github.workspace }} | |
| - name: Build with Maven | |
| run: mvn -B package --file pom.xml | |
| - name: Upload a Build Artifact | |
| uses: actions/upload-artifact@v4.6.2 | |
| with: | |
| name: win | |
| path: target/ACGPicDownload-*-jar-with-dependencies.jar | |
| retention-days: 7 | |
| buildmacos: | |
| runs-on: macos-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '25' | |
| distribution: 'temurin' | |
| server-id: github | |
| settings-path: ${{ github.workspace }} | |
| - name: Build with Maven | |
| run: mvn -B package --file pom.xml | |
| - name: Upload a Build Artifact | |
| uses: actions/upload-artifact@v4.6.2 | |
| with: | |
| name: macos | |
| path: target/ACGPicDownload-*-jar-with-dependencies.jar | |
| retention-days: 7 | |