Bootstrap the pinned GraalVM when needed, validate native build prerequisites, and install a verified standalone executable with the aie shortcut. Document usage and add installer fixtures to native CI. Validated with 14 installer tests, a real macOS ARM64 native build and installation, and the full installed CLI smoke suite. Publication explicitly authorized by the user: commit e push.
67 lines
1.9 KiB
YAML
67 lines
1.9 KiB
YAML
name: build
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
jvm:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: '25'
|
|
- uses: gradle/actions/setup-gradle@v4
|
|
- run: ./gradlew clean test bootJar --console=plain
|
|
- uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: jvm-test-reports
|
|
path: build/reports/tests/test
|
|
|
|
native:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: ubuntu-24.04
|
|
platform: linux-x86_64
|
|
- os: macos-15
|
|
platform: macos-arm64
|
|
- os: windows-2025
|
|
platform: windows-x86_64
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: graalvm/setup-graalvm@v1
|
|
with:
|
|
version: '25.5'
|
|
distribution: graalvm-community
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: gradle/actions/setup-gradle@v4
|
|
- name: Verify local native installer
|
|
if: runner.os != 'Windows'
|
|
shell: bash
|
|
run: |
|
|
bash -n scripts/install-native.sh
|
|
python3 scripts/test-install-native.py
|
|
- name: Build native archive
|
|
shell: bash
|
|
run: ./gradlew nativeDistZip -PtargetPlatform=${{ matrix.platform }} --console=plain
|
|
- name: Native continuity smoke
|
|
shell: bash
|
|
run: |
|
|
native_binary="$PWD/build/native/nativeCompile/ai-engineering"
|
|
if [[ "$RUNNER_OS" == Windows ]]; then native_binary="${native_binary}.exe"; fi
|
|
bash scripts/native-smoke.sh "$native_binary"
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ai-engineering-${{ matrix.platform }}
|
|
path: build/distributions/*.zip
|
|
# GraalVM 25 no longer provides macOS x86_64. See docs/roadmap.md.
|