Build iOS Graal JDK 25 #2
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
| name: Build iOS Graal JDK 25 | |
| "on": | |
| workflow_dispatch: | |
| inputs: | |
| release_version: | |
| description: Version to attach to the downloadable workflow artifact. | |
| required: true | |
| default: 25.0.4-ios.1 | |
| type: string | |
| push: | |
| tags: | |
| - "*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: macos-26 | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| with: | |
| submodules: recursive | |
| - uses: graalvm/setup-graalvm@v1 | |
| with: | |
| version: 25.0.4 | |
| distribution: graalvm | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build release assets | |
| env: | |
| GRAALVM_HOME: ${{ env.JAVA_HOME }} | |
| RELEASE_VERSION: ${{ inputs.release_version || github.ref_name }} | |
| run: ./scripts/build-release.sh | |
| - name: Verify release bundle | |
| run: | | |
| unzip -t dist/*.zip | |
| mkdir bundle | |
| unzip -q dist/*.zip -d bundle | |
| cd bundle && shasum -a 256 -c SHA256SUMS | |
| - uses: actions/upload-artifact@v7.0.1 | |
| with: | |
| path: dist/*.zip | |
| archive: false | |
| if-no-files-found: error | |
| - name: Create GitHub Release | |
| if: github.event_name == 'push' | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| RELEASE_VERSION: ${{ github.ref_name }} | |
| run: gh release create "$RELEASE_VERSION" "dist/ios-graal-jdk-$RELEASE_VERSION.zip" --title "$RELEASE_VERSION" |