|
| 1 | +--- |
| 2 | +name: "ci_checks" |
| 3 | +"on": |
| 4 | + pull_request: null |
| 5 | + push: |
| 6 | + branches: |
| 7 | + - "main" |
| 8 | + - "initial-version" |
| 9 | + workflow_dispatch: null |
| 10 | +concurrency: |
| 11 | + group: "${{ github.workflow }}-${{ github.ref }}" |
| 12 | + cancel-in-progress: true |
| 13 | +jobs: |
| 14 | + gradleCheck: |
| 15 | + name: "run checks using gradlew" |
| 16 | + runs-on: "ubuntu-latest" |
| 17 | + env: |
| 18 | + SEGMENT_DOWNLOAD_TIMEOUT_MINS: "15" |
| 19 | + steps: |
| 20 | + - name: "Checkout" |
| 21 | + uses: "actions/checkout@v4" |
| 22 | + with: |
| 23 | + fetch-depth: 0 |
| 24 | + - name: "Install JDK 21" |
| 25 | + uses: "actions/setup-java@v4" |
| 26 | + with: |
| 27 | + distribution: "graalvm" |
| 28 | + java-version: 21 |
| 29 | + - name: "Setup Gradle" |
| 30 | + uses: "gradle/actions/setup-gradle@v4" |
| 31 | + - name: "Run check on build-logic subproject" |
| 32 | + run: "./gradlew :build-logic:check --no-configuration-cache" |
| 33 | + - name: "Make sure usage files are up to date" |
| 34 | + run: "./gradlew generateUsage" |
| 35 | + - name: "Run check on project" |
| 36 | + run: "./gradlew check" |
| 37 | + - name: "junit result" |
| 38 | + uses: "mikepenz/action-junit-report@v4" |
| 39 | + if: "always()" |
| 40 | + with: |
| 41 | + check_name: "JUnit Report" |
| 42 | + report_paths: "**/build/test-results/test/*.xml" |
| 43 | + nativeCompile: |
| 44 | + name: "run nativeCompile on relevant platforms" |
| 45 | + needs: "gradleCheck" |
| 46 | + strategy: |
| 47 | + matrix: |
| 48 | + runner: |
| 49 | + - "ubuntu-latest" |
| 50 | + - "ubuntu-24.04-arm" |
| 51 | + - "windows-latest" |
| 52 | + - "macos-latest" |
| 53 | + - "macos-13" |
| 54 | + fail-fast: false |
| 55 | + runs-on: "${{ matrix.runner }}" |
| 56 | + env: |
| 57 | + SEGMENT_DOWNLOAD_TIMEOUT_MINS: "15" |
| 58 | + BUILDCACHE_LOCAL_DEFAULT_DIRECTORY: "true" |
| 59 | + steps: |
| 60 | + - name: "Checkout" |
| 61 | + uses: "actions/checkout@v4" |
| 62 | + with: |
| 63 | + fetch-depth: 0 |
| 64 | + - name: "Install JDK 21" |
| 65 | + uses: "actions/setup-java@v4" |
| 66 | + with: |
| 67 | + distribution: "graalvm" |
| 68 | + java-version: 21 |
| 69 | + - name: "Setup Gradle" |
| 70 | + uses: "gradle/actions/setup-gradle@v4" |
| 71 | + - name: "Run gradle build" |
| 72 | + run: "./gradlew nativeCompile" |
| 73 | + - name: "Check if binary works" |
| 74 | + run: "./gradlew testCliNative testCliNativeNpm" |
| 75 | + - name: "junit result" |
| 76 | + uses: "mikepenz/action-junit-report@v4" |
| 77 | + if: "always()" |
| 78 | + with: |
| 79 | + check_name: "JUnit Report" |
| 80 | + report_paths: "**/build/test-results/test/*.xml" |
0 commit comments