|
10 | 10 | - master |
11 | 11 |
|
12 | 12 | jobs: |
13 | | - build: |
14 | | - |
| 13 | + buildlinux: |
15 | 14 | runs-on: ubuntu-latest |
16 | 15 | permissions: |
17 | 16 | contents: read |
18 | 17 | packages: write |
19 | | - |
20 | 18 | steps: |
21 | 19 | - uses: actions/checkout@v4 |
22 | 20 | - name: Set up JDK 21 |
23 | 21 | uses: actions/setup-java@v4 |
24 | 22 | with: |
25 | 23 | java-version: '21' |
26 | 24 | distribution: 'temurin' |
27 | | - server-id: github # Value of the distributionManagement/repository/id field of the pom.xml |
28 | | - settings-path: ${{ github.workspace }} # location for the settings.xml file |
29 | | - |
| 25 | + server-id: github |
| 26 | + settings-path: ${{ github.workspace }} |
30 | 27 | - name: Build with Maven |
31 | 28 | run: mvn -B package --file pom.xml |
32 | | - |
33 | 29 | - name: Upload a Build Artifact |
34 | 30 | uses: actions/upload-artifact@v4.6.2 |
35 | 31 | with: |
| 32 | + name: linux |
36 | 33 | path: target/ACGPicDownload-*-jar-with-dependencies.jar |
37 | | - retention-days: 30 |
| 34 | + retention-days: 7 |
| 35 | + buildwin: |
| 36 | + runs-on: windows-latest |
| 37 | + permissions: |
| 38 | + contents: read |
| 39 | + packages: write |
| 40 | + steps: |
| 41 | + - uses: actions/checkout@v4 |
| 42 | + - name: Set up JDK 21 |
| 43 | + uses: actions/setup-java@v4 |
| 44 | + with: |
| 45 | + java-version: '21' |
| 46 | + distribution: 'temurin' |
| 47 | + server-id: github |
| 48 | + settings-path: ${{ github.workspace }} |
| 49 | + - name: Build with Maven |
| 50 | + run: mvn -B package --file pom.xml |
| 51 | + - name: Upload a Build Artifact |
| 52 | + uses: actions/upload-artifact@v4.6.2 |
| 53 | + with: |
| 54 | + name: win |
| 55 | + path: target/ACGPicDownload-*-jar-with-dependencies.jar |
| 56 | + retention-days: 7 |
| 57 | + buildmacos: |
| 58 | + runs-on: macos-latest |
| 59 | + permissions: |
| 60 | + contents: read |
| 61 | + packages: write |
| 62 | + steps: |
| 63 | + - uses: actions/checkout@v4 |
| 64 | + - name: Set up JDK 21 |
| 65 | + uses: actions/setup-java@v4 |
| 66 | + with: |
| 67 | + java-version: '21' |
| 68 | + distribution: 'temurin' |
| 69 | + server-id: github |
| 70 | + settings-path: ${{ github.workspace }} |
| 71 | + - name: Build with Maven |
| 72 | + run: mvn -B package --file pom.xml |
| 73 | + - name: Upload a Build Artifact |
| 74 | + uses: actions/upload-artifact@v4.6.2 |
| 75 | + with: |
| 76 | + name: macos |
| 77 | + path: target/ACGPicDownload-*-jar-with-dependencies.jar |
| 78 | + retention-days: 7 |
| 79 | + |
0 commit comments