1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| name: GraalVM Native Image builds on: [push, pull_request] jobs: build: name: build on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: os: [macos-latest, windows-latest, ubuntu-latest] steps: - uses: actions/checkout@v3
- uses: graalvm/setup-graalvm@v1 with: java-version: '17.0.7' distribution: 'graalvm' github-token: ${{ secrets.GITHUB_TOKEN }} native-image-job-reports: 'true' - name: Build run: mvn -U clean install -DskipTests && mvn native:compile -Pnative -DskipTests - name: Upload binary uses: actions/upload-artifact@v2 with: name: artifact-${{ matrix.os }} path: xxx 这里填构建产物的位置
|