Centralize build configuration #62
Workflow file for this run
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: Check | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| agents-lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v7 | |
| - name: Set Up Python 3.14 | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: "3.14" | |
| - name: Test Agent Configuration Validator | |
| run: python3 -m unittest discover -s scripts/tests -t . -p "test_*.py" | |
| - name: Validate Agent Configuration | |
| run: python3 scripts/check_agent_config.py | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - windows-latest | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v7 | |
| - name: Set Up Java 17 for Compatibility Tests | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - name: Save Java 17 Toolchain | |
| shell: bash | |
| run: echo "EMBED_CODE_JAVA_17_HOME=$JAVA_HOME" >> "$GITHUB_ENV" | |
| - name: Set Up Java 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: 25 | |
| - name: Set Up Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| - name: Build | |
| shell: bash | |
| run: >- | |
| ./gradlew | |
| -Dorg.gradle.java.installations.paths="$EMBED_CODE_JAVA_17_HOME" | |
| build :gradle-plugin:publishToMavenLocal |