Migrate to github actions #1
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: CI | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| push: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| include: | |
| - os: ubuntu-latest | |
| build-command: ./gradlew build | |
| - os: macos-latest | |
| build-command: ./gradlew buildApple | |
| - os: windows-latest | |
| build-command: ./gradlew --no-daemon build -x wasmJsNodeTest -x wasmWasiNodeTest | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| JVM_OPTS: -Xmx3200m | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK 24 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '24' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Build | |
| run: ${{ matrix.build-command }} | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v3 | |
| if: always() | |
| with: | |
| name: test-results-${{ runner.os }} | |
| path: | | |
| build/test-results/**/*.xml | |
| */build/test-results/**/*.xml | |
| - name: Upload test reports | |
| uses: actions/upload-artifact@v3 | |
| if: always() | |
| with: | |
| name: test-reports-${{ runner.os }} | |
| path: | | |
| build/reports/**/* | |
| */build/reports/**/* |