|
| 1 | +# This workflow uses actions that are not certified by GitHub. |
| 2 | +# They are provided by a third-party and are governed by |
| 3 | +# separate terms of service, privacy policy, and support |
| 4 | +# documentation. |
| 5 | +# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time |
| 6 | +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle |
| 7 | + |
| 8 | +name: arm64-Platform Matrix |
| 9 | + |
| 10 | +on: |
| 11 | + push: |
| 12 | + branches: [ 'develop', 'master', 'release_**' ] |
| 13 | + pull_request: |
| 14 | + branches: [ 'develop', 'master', 'release_**' ] |
| 15 | + |
| 16 | +jobs: |
| 17 | + build: |
| 18 | + |
| 19 | + name: ${{ matrix.os }} - ${{ matrix.arch }} |
| 20 | + runs-on: ${{ matrix.runner }} |
| 21 | + |
| 22 | + strategy: |
| 23 | + fail-fast: false |
| 24 | + matrix: |
| 25 | + include: |
| 26 | + # Apple Silicon runners (using latest available) |
| 27 | + # see https://github.com/actions/runner-images?tab=readme-ov-file#available-images |
| 28 | + - os: macOS |
| 29 | + arch: arm64 |
| 30 | + runner: macos-latest |
| 31 | + # Linux arm runners |
| 32 | + - os: Linux |
| 33 | + arch: arm64 |
| 34 | + runner: ubuntu-24.04-arm |
| 35 | + |
| 36 | + permissions: |
| 37 | + contents: read |
| 38 | + |
| 39 | + steps: |
| 40 | + - name: Checkout sources |
| 41 | + uses: actions/checkout@v4 |
| 42 | + - name: Set up JDK 17 |
| 43 | + uses: actions/setup-java@v4 |
| 44 | + with: |
| 45 | + java-version: '17' |
| 46 | + distribution: 'temurin' |
| 47 | + |
| 48 | + # Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies. |
| 49 | + # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md |
| 50 | + - name: Setup Gradle |
| 51 | + uses: gradle/actions/setup-gradle@v4 |
| 52 | + |
| 53 | + - name: Build with Gradle Wrapper |
| 54 | + run: ./gradlew clean build --no-daemon |
0 commit comments